| Home Register Memberlist Help Search Quick Links No Replies |
|
||||||
| Basic How-tos Help Us Noobs by Sharing Your Wisdom |
![]() |
![]() |
|
Thread Tools | ![]() |
|
#1
|
||||
|
||||
|
I had this issue happen the other day where my domain was digging locally on my FreeBSD box, but it was not working off the machine for digs (so the domain wasn't resolving). I wanted to relay how I fixed it for those who might run into the same issue.
First of all, your domain won't be working and digs locally will work, but non-local digs fail: Code:
server# dig @localhost cpfreebsd.com +short 209.200.236.74 Code:
server# dig cpfreebsd.com +short server# Code:
server# telnet 209.200.236.74 53 Trying 209.200.236.74... telnet: connect to address 209.200.236.74: Connection refused telnet: Unable to connect to remote host Next, you would check network activity for the port for what is listening on it: Code:
server# lsof -i :53 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME named 3895 bind 20u IPv4 0xc470f768 0t0 TCP localhost:domain (LISTEN) named 3895 bind 512u IPv4 0xc4636280 0t0 UDP localhost:domain named 3895 bind 20u IPv4 0xc470f768 0t0 TCP localhost:domain (LISTEN) named 3895 bind 512u IPv4 0xc4636280 0t0 UDP localhost:domain named 3895 bind 20u IPv4 0xc470f768 0t0 TCP localhost:domain (LISTEN) named 3895 bind 512u IPv4 0xc4636280 0t0 UDP localhost:domain named 3895 bind 20u IPv4 0xc470f768 0t0 TCP localhost:domain (LISTEN) named 3895 bind 512u IPv4 0xc4636280 0t0 UDP localhost:domain Code:
server# sockstat -l | grep :53 bind named 2702 20 tcp4 127.0.0.1:53 *:* bind named 2702 512 udp4 127.0.0.1:53 *:* Code:
server# telnet localhost 53 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Code:
listen-on { 127.0.0.1; };
Code:
listen-on { 209.200.236.74; 127.0.0.1; };
Code:
/scripts/restartsrv_named Now, you should be able to dig your domain, telnet on port 53 to the IP, and see the IP listening on the server's network on port 53: Code:
server# dig @localhost cpfreebsd.com +short 209.200.236.74 Code:
server# dig cpfreebsd.com +short 209.200.236.74 Code:
server# telnet 209.200.236.74 53 Trying 209.200.236.74... Connected to server.cpfreebsd.com. Escape character is '^]'. Code:
server# sockstat -l | grep :53 bind named 3970 20 tcp4 209.200.236.74:53 *:* bind named 3970 21 tcp4 127.0.0.1:53 *:* bind named 3970 512 udp4 209.200.236.74:53 *:* bind named 3970 513 udp4 127.0.0.1:53 *:* I hope this helps people.
__________________
Miraenda ~ Ex uno disce omnes ~ |
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. |
||