HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   server can't find domain.com: NXDOMAIN (http://www.howtoforge.com/forums/showthread.php?t=18611)

dexjul 20th December 2007 16:43

server can't find domain.com: NXDOMAIN
 
Hello,

I installed binds I follow this http://www.ubuntugeek.com/dns-server...in-ubuntu.html.

I think there is something wrong in my config.

Kindly check this.

Code:

dexter@dexter-laptop:/etc/apache2$ dig docjul.com

; <<>> DiG 9.3.4 <<>> docjul.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 59881
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;docjul.com.                    IN      A

;; AUTHORITY SECTION:
com.                    231    IN      SOA    a.gtld-servers.net. nstld.verisign-grs.com. 1198054478 1800 900 604800 900

;; Query time: 10 msec
;; SERVER: 58.69.254.106#53(58.69.254.106)
;; WHEN: Wed Dec 19 17:06:11 2007
;; MSG SIZE  rcvd: 101


Code:

dexter@dexter-laptop:/etc/apache2$ nslookup docjul.com
Server:        58.69.254.106
Address:        58.69.254.106#53

** server can't find docjul.com: NXDOMAIN


docjul.com.db
Code:

// replace example.com with your domain name. do not forget the . after the domain name!
// Also, replace ns1 with the name of your DNS server
docjul.com. IN SOA ns1.docjul. admin.docjul.com. (
// Do not modify the following lines!
2007031001
28800
3600
604800
38400
)

// Replace the following line as necessary:
// ns1 = DNS Server name
// mail = mail server name
// example.com = domain name

docjul.com. IN NS ns1.docjul.com.
docjul.com. IN MX 10 mail.docjul.com.
docjul.com. IN A 124.83.19.155

// Replace the IP address with the right IP addresses.
www IN A 124.83.19.155
mta IN A 124.83.19.155
ns1 IN A 124.83.19.155

rev.0.0.124.in-addr.arpa
Code:

//replace example.com with yoour domain name, ns1 with your DNS server name.
// The number before IN PTR example.com is the machine address of the DNS server. in my case, itís 1, as my IP address is #192.168.0.1.
@ IN SOA ns1.docjul.com. admin.docjul.com. (
2007031001;
28800;
604800;
604800;
86400
)

IN NS ns1.docjul.com.
1 IN PTR docjul.com


falko 21st December 2007 12:46

Does
Code:

dig @localhost docjul.com
work?

edge 30th December 2007 19:59

dexjul,

A bit off topic, but maybe you can post the fix to your Hotmail problem here?
Lot's of people here are having the same problem as you did have, and they (like you) would love to have it working.

dexjul 3rd January 2008 06:27

Quote:

Originally Posted by falko
Does
Code:

dig @localhost docjul.com
work?

Thanks falko, but still the same. Do you have any idea?

falko 4th January 2008 18:35

Is BIND running? What's the output of
Code:

netstat -tap
? Any errors in your logs?

dexjul 5th January 2008 04:54

Quote:

Originally Posted by falko
Is BIND running? What's the output of
Code:

netstat -tap
? Any errors in your logs?

Here's the output of netstat -tap

Code:

dexter@dexter-laptop:/var/log$ netstat -tap
(Not all processes could be identified, non-owned process info
 will not be shown, you would have to be root to see it all.)
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name 
tcp        0      0 localhost:2208          *:*                    LISTEN    -                 
tcp        0      0 *:mysql                *:*                    LISTEN    -                 
tcp        0      0 *:netbios-ssn          *:*                    LISTEN    -                 
tcp        0      0 *:www                  *:*                    LISTEN    -                 
tcp        0      0 192.168.242.1:domain    *:*                    LISTEN    -                 
tcp        0      0 192.168.186.1:domain    *:*                    LISTEN    -                 
tcp        0      0 124.83.30.228.pl:domain *:*                    LISTEN    -                 
tcp        0      0 localhost:domain        *:*                    LISTEN    -                 
tcp        0      0 localhost:ipp          *:*                    LISTEN    -                 
tcp        0      0 localhost:953          *:*                    LISTEN    -                 
tcp        0      0 *:microsoft-ds          *:*                    LISTEN    -                 
tcp        0      0 localhost:2207          *:*                    LISTEN    -                 

tcp        0      0 124.83.30.228.pld:42231 cs36.msg.dcn.yahoo:mmcc ESTABLISHED6223/gaim         
tcp6      0      0 *:5900                  *:*                    LISTEN    6040/vino-server   
tcp6      0      0 *:domain                *:*                    LISTEN    -                 
tcp6      0      0 *:ftp                  *:*                    LISTEN    -                 
tcp6      0      0 *:ssh                  *:*                    LISTEN    -                 
tcp6      0      0 ip6-localhost:953      *:*                    LISTEN    -

binds is running

Code:

dexter@dexter-laptop:/var/log$ sudo /etc/init.d/bind9 stop
 * Stopping domain name service... bind                                                                              [ OK ]
dexter@dexter-laptop:/var/log$ sudo /etc/init.d/bind9 start
 * Starting domain name service... bind                                                                              [ OK ]

Where can I find log for binds?

Thank you.

falko 6th January 2008 13:15

Quote:

Originally Posted by dexjul
Where can I find log for binds?

Thank you.

Take a look at /var/log/syslog.

skhaos 12th November 2008 16:40

Merry Christmas... oh and adjust "admin" to reflect your bind user.

Code:


$TTL        86400       
@        IN        SOA        admin        ns1.docjul.com. (
20081112001        ; Serial
28800        : Refresh (s)
3600        ; Retry (s)
604800        ; Expiration (s)
38400        ; Negative Cache TTL (s)
)
;
@        IN        NS        ns1
ns1        IN        A        124.83.19.155
www        IN        CNAME        ns1
mta        IN        CNAME        ns1
mail        IN        MX        INSERT IP HERE

You'll want to double check your reverse lookup too it seems. Update your zone file like this, and then restart bind. Please post your syslog after doing this.

skhaos 16th November 2008 17:59

Quote:

Originally Posted by skhaos (Post 154767)
Merry Christmas... oh and adjust "admin" to reflect your bind user.

According to DNS and BIND, 5th Edition by O'Reilly Media, 2007:

"The second name (al.movie.edu.) is the mail address of the person in charge of the zone if you replace the first "." with an "@". Often you'll see root, postmaster, or hostmaster as the email address. Nameservers won't use this address; it's meant for human consumption. If you have a problem with a zone, you can send a message to the listed email address."

So, I stand corrected.

thisara 2nd April 2010 10:39

Nxdomain
 
My named on /etc/named
/var/named
my zone file on /var/named/chroot/var/named/data/


[root@fcts data]# dig fcts.in

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5_4.2 <<>> fcts.in
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 48711
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;fcts.in. IN A

;; AUTHORITY SECTION:
in. 900 IN SOA a0.cctld.afilias-nst.info. noc.afilias-nst.info. 2008492742 600 900 2592000 86400

;; Query time: 103 msec
;; SERVER: 192.168.1.10#53(192.168.1.10)
;; WHEN: Sat Apr 3 13:58:55 2010
;; MSG SIZE rcvd: 90


/etc/hosts

127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.10 fcts.in fcts


[root@fcts data]# nslookup fcts.in
Server: 192.168.1.10
Address: 192.168.1.10#53

** server can't find fcts.in: NXDOMAIN


[root@fcts data]# nslookup
> 192.168.1.10
Server: 192.168.1.10
Address: 192.168.1.10#53

** server can't find 10.1.168.192.in-addr.arpa.: NXDOMAIN
> fcts.in
Server: 192.168.1.10
Address: 192.168.1.10#53

** server can't find fcts.in: NXDOMAIN


How to get rid out this problem


All times are GMT +2. The time now is 16:55.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.