Internal DNS server not updating for chan…
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Yesterday we changed hosting companies (for our web site). I updated the nameservers with Network Solutions. I went home and while surfing the internet found that http://www.mycompanyname.com was correctly resolving to the new IP address, of the new hosting company. Cool.
This morning I came into work and I tried to go to our web site, but here in the office our DNS server is still resolving http://www.mycompanyname.com to the old IP! I SSH'd to another computer outside the office, and DNS resolution is correctly working there. It seems that our osx server is not updating...its dns records.
Isnt it supposed to update on its own? If not, how do I manually make it update? And if Im not asking the right questions, let me know that too.
11 replies
Sign in or join Beachball Help to reply.
- 0
Mabel O'Farrell ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Isnt it supposed to update on its own?
Sometimes the changes take a while to propagate from the authoritative server. Manually flush the cache on the server by doing this in Terminal.app on the DNS server:
/usr/sbin/rndc flush - 0
Camelot ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
In addition to propogation delays, does the internal office server think it's authoritative for mycompanyname.com ?
This is common where you want internal users to see a slightly different view of your domain from the public (e.g. you may include private/internal server addresses in your own view of the domain that you don't publish to the net).If your server is authoritative then it isn't ever going to update from an upstream server. It thinks (and, indeed, believes) that it knows all there is to know about that domain, so it isn't going to reach out to get updates.
- 0
Arbitrage1 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Entering this:
/usr/sbin/rndc flush
Results in:
rndc: connect faild: 127.0.0.1#953: connection refusedIve also tried dacacheutil -flushcache and that command succeeds, but the web address is still not resolving to the new address.
Further, the dns server doesn't thing its authoritative over our web site domain. The domain for our office is different.
- 0
Mabel O'Farrell ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Try it again like this -you must do this on the DNS Server:
sudo /usr/sbin/rndc flush
Also,
dscacheutil -flushcache, only clears the OS DNS cache. The information cached by the DNS server is different.Further, the dns server doesn't thing its authoritative over our web site domain.
That would be normal if you internal domain is different from the external one for your website. There may be a problem with the DNS for your web-hosting company that is creating the problem. What is the webserver's FQDN?
- 0
Arbitrage1 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
sudo /usr/sbin/rndc flush prompts for my password, and then echos the same error...
rndc: connect failed: 127.0.0.1#953: connection refused
Our web hosting company doesn't seem to be the problem, and neither does our ISP, and heres why I think that. I have a laptop on my desk as well, and so I fired up the wifi and connected to one of the open access points in our building, which belongs to a neighboring company. I was then able to ping our domain name, and see that it was correctly resolving. They use the same ISP as we do...
- 0
Mabel O'Farrell ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
In Terminal.app on your workstation do:
dig @12.34.56.78 http://www.mycompanyname.com
where '12.34.56.78' is the IP address of your internal DNS server. Then do:
dig @12.34.56.78 -x <serverIPaddress>
where '12.34.56.78' is the IP address of your internal DNS server and <serverIPaddress> (without the < and > symbols) is the IP address of your server as returned from the first instance of 'dig'.If the responses don't come back with the proper IP and FQDN of your webserver, then there is a problem with your internal DNS server -possibly firewall or router issues- or with the configuration of your network settings for your workstations -wrong DNS settings.
- 0
Arbitrage1 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Thanks for the help. The dns server is our osx server box. I might have been unclear about that.
dig @10.0.1.100 http://www.idintranet.com
> DiG 9.4.1-P1 <<>> @10.0.1.100 http://www.idintranet.com
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11815
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 1, ADDITIONAL: 0;; QUESTION SECTION:
;www.idintranet.com. IN A;; ANSWER SECTION:
http://www.idintranet.com. 10800 IN CNAME idserver.idintranet.com.
idserver.idintranet.com. 10800 IN A 10.0.1.100;; AUTHORITY SECTION:
idintranet.com. 10800 IN NS ns.idintranet.com.;; Query time: 1 msec
;; SERVER: 10.0.1.100#53(10.0.1.100)
;; WHEN: Tue Aug 25 19:02:59 2009
;; MSG SIZE rcvd: 92-------------------
$dig @10.0.1.100 -x 10.0.1.100
; <<>> DiG 9.4.1-P1 <<>> @10.0.1.100 -x 10.0.1.100
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49482
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 0;; QUESTION SECTION:
;100.1.0.10.in-addr.arpa. IN PTR;; ANSWER SECTION:
100.1.0.10.in-addr.arpa. 10800 IN PTR idserver.idintranet.com.;; AUTHORITY SECTION:
1.0.10.in-addr.arpa. 10800 IN NS ns.idintranet.com.;; Query time: 0 msec
;; SERVER: 10.0.1.100#53(10.0.1.100)
;; WHEN: Tue Aug 25 19:04:33 2009I think its working fine...
- 0
Arbitrage1 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Using the dig command some more
dig @10.0.1.100 http://www.ourwebsite.com -> returns the INCORRECT IP address
dig @10.0.1.100 -x TheCorrectIPAddress -> returns the correct dns info for the new hosting company
- 0
Mabel O'Farrell ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
You need to remove this CNAME entry:
http://www.idintranet.com. 10800 IN CNAME idserver.idintranet.com.
from your internal DNS as that points to your internal server and not the one at your web-hosting provider.You also need to contact your web-hosting provider as their DNS does not does not reverse properly for your website, http://www.idintranet.com. The IP address assigned points back to one of their generic hostnames and it does not reverse properly either -which is sometimes common practice, but wrong none-the-less.
This is correct:
dig www.idintranet.com
;; QUESTION SECTION:
;www.idintranet.com. IN A
;; ANSWER SECTION:
www.idintranet.com. 86207 IN A 140.99.28.68
;; AUTHORITY SECTION:
idintranet.com. 86207 IN NS ns2.adwebsystems.com.
idintranet.com. 86207 IN NS ns1.adwebsystems.com.This is wrong:
dig -x 140.99.28.68
;; QUESTION SECTION:
;68.28.99.140.in-addr.arpa. IN PTR
;; ANSWER SECTION:
68.28.99.140.in-addr.arpa. 86338 IN PTR 68.adweb.com.au.
;; AUTHORITY SECTION:
28.99.140.in-addr.arpa. 86338 IN NS ns2.deru.net.
28.99.140.in-addr.arpa. 86338 IN NS ns1.deru.net.This is wrong:
dig 68.adweb.com.au
;; QUESTION SECTION:
;68.adweb.com.au. IN A
;; AUTHORITY SECTION:
adweb.com.au. 3600 IN SOA ns1.adweb.com.au. root.adweb.com.au. 2009072301 10800 900 1814400 36000 - 0
Arbitrage1 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
http://www.idintranet.com is a domain name I made up for our intranet. Its only for internal use. Its resolving correctly for our internal use.
I guess I need to use real examples.
; <<>> DiG 9.4.1-P1 <<>> http://www.instinctd.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60044
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0;; QUESTION SECTION:
;www.instinctd.com. IN A;; ANSWER SECTION:
http://www.instinctd.com. 1252 IN A 65.254.250.108;; AUTHORITY SECTION:
instinctd.com. 43875 IN NS ns1.powweb.com.
instinctd.com. 43875 IN NS ns2.powweb.com.If you try that from your side, you'll see the A record IP is 174... and thats what it should be. Mines wrong.
- 0
Arbitrage1 ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Well, everyone went home so I restarted the server and it fixed the problem. Apparently that's how you clear the cache..
Thanks for the help.