Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

My server's ip is 192.168.1.1

I was trying to configure dns with bind9. But: When I use nslookup 192.168.1.1 I've got as a result

 server:  192.168.1.1
 address: 192.168.1.1#53
 **server can't find 1.1.168.192.in-addr.arpa:SERVFAILE

when I use nslookup guf.by I've got as a result

 server:  192.168.1.1
 address: 192.168.1.1#53
 **can't find guf.by:no answer

My /etc/bind/named.conf.local

name.conf.local

/etc/bind/named.conf.options

name.conf.options

I can ping myself with domain name - so ping ubuntu.guf.by is working.(ubuntu my server's name. client can ping server by domain name too) My /etc/dhcp/dhcpd.conf dhcpd.conf

And my /etc/network/interfaces interfaces

Both rev.1.168.192.in-addr.arpa and guf.by.db are in catalog zones resolv.conf

search guf.by
nameserver 192.168.1.1

SERVER DOESN'T PING CLIENT by domain name!

share|improve this question

migrated from stackoverflow.com Apr 27 '12 at 1:23

This question came from our site for professional and enthusiast programmers.

    
What is the contents of your /etc/resolv.conf file? –  lynks Apr 24 '12 at 18:10
    
search guf.by nameserver 192.168.1.1 and that's all –  Артём Царионов Apr 24 '12 at 18:30
add comment

1 Answer

First, is bind (named) running? Are there any fw/iptables rules that blocks tcp/udp port 53?

Try checking /var/log/messages for any bind/named errors. If there were any issues with the data files, you should see something in the log file.

It looks like the ubuntu's IP address is 192.168.1.1. In your named.conf, you list the forwarder to 192.168.1.1. If you intend to run bind on 1.1, you don't need to setup a forwarder to itself.

If you defined the local hostname as "ubuntu.guf.by", then you'll be able to ping yourself. Check out /etc/hosts, you might see an entry for "ubuntu" or "ubuntu.guf.by" to 127.0.0.1 or 192.168.1.1

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.