LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   bind problem :bind domain not getting resolved (http://www.linuxquestions.org/questions/linux-networking-3/bind-problem-bind-domain-not-getting-resolved-751669/)

abhijit_mohanta 08-31-2009 11:53 PM

bind problem :bind domain not getting resolved
 
I have configured bind to create a domain.I see thet domain getting resolved for sometime and then it does not

[root@01hw186078 ~]# nslookup
> server 127.0.0.1
Default server: 127.0.0.1
Address: 127.0.0.1#53
> cdrdomain.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: cdrdomain.com
Address: 172.18.226.254
> cdrdomain.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: cdrdomain.com
Address: 172.18.226.254
> cdrdomain.com
Server: 127.0.0.1
Address: 127.0.0.1#53

Name: cdrdomain.com
Address: 172.18.226.254
> cdrdomain
^C
[root@01hw186078 ~]# nslookup
> cdrdoamin
;; Got SERVFAIL reply from 172.18.18.152, trying next server
;; Got SERVFAIL reply from 172.18.18.113, trying next server
Server: 172.17.117.46
Address: 172.17.117.46#53

** server can't find cdrdoamin: SERVFAIL
>


you can see in the second nslookup name resolution fails

bathory 09-01-2009 12:21 AM

It's normal as you're trying to resolve a domain with the named "cdrdoamin".
By the way nslookup is deprecated. You should better use dig.

abhijit_mohanta 09-01-2009 01:59 AM

I am facing a new problem .I have disabled iptables ,selinux but still not able to access dns from other computers in network.
even- nc (my ip) 53 is not working but nc localhost 53 is working.
Hopefully a firewall problem.
Can anyone give any suggestions.

bathory 09-01-2009 02:15 AM

If you have disabled iptables, then it's not a firewall problem. Check if named listens on your servers' public IP:
Code:

netstat -tunap|grep 53

abhijit_mohanta 09-01-2009 03:09 AM

yes it's listening.thts why
nc localhost 53
is working

bathory 09-01-2009 03:15 AM

localhost is not your public ip. And you didn't post the output of netstat...

abhijit_mohanta 09-01-2009 03:30 AM

nc [my ip] 53 is also not working

netstat -tunap|grep 53
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 3758/named
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2383/dnsmasq
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 3758/named
tcp 0 0 172.18.226.254:36068 172.18.18.167:1533 ESTABLISHED 3495/pidgin
tcp 0 0 ::1:53 :::* LISTEN 3758/named
tcp 0 0 ::1:953 :::* LISTEN 3758/named
udp 0 0 127.0.0.1:53667 127.0.0.1:53667 ESTABLISHED 2257/postmaster
udp 0 0 127.0.0.1:53 0.0.0.0:* 3758/named
udp 0 0 192.168.122.1:53 0.0.0.0:* 2383/dnsmasq
udp 0 0 0.0.0.0:53603 0.0.0.0:* 3758/named
udp 0 0 0.0.0.0:5353 0.0.0.0:* 2343/avahi-daemon:
udp 0 0 :::53678 :::* 3758/named
udp 0 0 ::1:53 :::* 3758/named
udp 0 0 :::53477 :::*


I have hosted httpd service (apache on my computer).It could be accessed by other computers in network.But I m not able to find why bind is not exposed to the network even after disabling firewalls,selinux.

bathory 09-01-2009 03:37 AM

It looks like dnsmasq is running and listens on port 53. If you want to use bind you should disable dnsmasq and make sure it's not starting on boot.

Cheers


All times are GMT -5. The time now is 11:46 PM.