Trying to fix DNS, but broke it. Now can't undo the change

I naively modified the primary zone in the DNS configuration. It looked like it was setup improperly as it was set to server.ourofficenet.org.ourofficenet.org. I took out the 2nd domain and saved the change.
Now of course no one can use the server, which was our primary DNS server. I can't even ping the IP successfully.
Can someone give me an idea how to fix this by command line, or some trick that will get me back up and running? I'm not very familiar with OS X Server (obviously).
Thanks in advance.

I naively modified the primary zone in the DNS configuration. It looked like it was setup improperly as it was set to server.ourofficenet.org.ourofficenet.org. I took out the 2nd domain and saved the change.
Sounds like you forgot the trailing .
When working with the domain 'ourofficenet.org' the DNS server will assume that any specified hostname should be prepended to the domain name.
So if you enter 'server.ourofficenet.org' as the hostname, this is prepended to the domain name and you end up with 'server.ourofficenet.org.ourofficenet.org'.
There are two ways to deal with this - one is to only enter the hostname portion - e.g. 'server'. This will be prepended to the domain name and end up with 'server.ourofficenet.org'. The other is to add a trailing . to the end of the hostname - e.g. 'server.ourofficenet.org.'
Adding the trailing . tells the DNS server you've specified the fully-qualified domain name and the domain name should not be appended.
So that's where you went wrong. As for how to fix it, you should be able to use Server Admin to connect to the server via IP address - clearly the name lookup isn't working which is why you can't connect via name.
If that doesn't work you can try to edit your zone file directly - it'll be in /var/named then restart named via sudo killall -HUP named (or rndc reload if that's configured).

Similar Messages

Maybe you are looking for