PDA

View Full Version : DNS (using only for internal) not resolving names


binaryrogue
16th July 2009, 23:42
I'm trying to setup ispconfig3 as an internal DNS server resolving only server/pc names.

I created an DNS zone called mydomain.local and created about five 5 A records.

hostname: server1
IP-address: 192.168.3.2

hostname: server2
Ip-address: 192.168.3.3
.
.
.

If I try to configure one of my PC desktop on the network and set the primary DNS server to the ispconfig3 box, I can't resolve/ping by name:

[root@star]# ping server1
ping: unknown host server1

Am I missing something?

till
17th July 2009, 11:21
You have to use:

ping server1.mydomain.local and not just server1 as the zone is mydomain.local

Please try this command on the server:

dig @localhost server1.mydomain.local

also make sure that your zone ends with a dot:

mydomain.local.

Mark_NL
17th July 2009, 11:29
[root@star]# ping server1

i that only works if you put

search mydomain.local

in your /etc/resolv.conf

binaryrogue
17th July 2009, 19:41
DNS was working all this time because I could always ping by the fqdn. I wanted a way just to ping my system name. Putting in "search mydomain.local" in the resolv.conf file did the trick. thanks guys.