Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 20th December 2007, 17:43
dexjul dexjul is offline
Member
 
Join Date: May 2007
Posts: 53
Thanks: 0
Thanked 3 Times in 2 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 21st December 2007, 13:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Does
Code:
dig @localhost docjul.com
work?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 30th December 2007, 20:59
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts
Default

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.
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
  #4  
Old 3rd January 2008, 07:27
dexjul dexjul is offline
Member
 
Join Date: May 2007
Posts: 53
Thanks: 0
Thanked 3 Times in 2 Posts
Default

Quote:
Originally Posted by falko
Does
Code:
dig @localhost docjul.com
work?
Thanks falko, but still the same. Do you have any idea?
Reply With Quote
  #5  
Old 4th January 2008, 19:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Is BIND running? What's the output of
Code:
netstat -tap
? Any errors in your logs?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 5th January 2008, 05:54
dexjul dexjul is offline
Member
 
Join Date: May 2007
Posts: 53
Thanks: 0
Thanked 3 Times in 2 Posts
Default

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.
Reply With Quote
  #7  
Old 6th January 2008, 14:15
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

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

Thank you.
Take a look at /var/log/syslog.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 12th November 2008, 17:40
skhaos skhaos is offline
Junior Member
 
Join Date: Nov 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Last edited by skhaos; 12th November 2008 at 18:00.
Reply With Quote
  #9  
Old 16th November 2008, 18:59
skhaos skhaos is offline
Junior Member
 
Join Date: Nov 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by skhaos View Post
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.
Reply With Quote
  #10  
Old 2nd April 2010, 11:39
thisara thisara is offline
Junior Member
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Angry 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
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How set DNS entry for different server? SupuS Installation/Configuration 1 12th June 2006 10:48
Administrator receive empty mail ??? Stanev General 16 7th April 2006 21:56
server blocked/stopped by host Ovidiu Technical 11 14th February 2006 11:50
Mail not working Roadracer Installation/Configuration 16 31st December 2005 00:40
Server can't "see" the internet Luciano Installation/Configuration 8 23rd August 2005 00:22


All times are GMT +2. The time now is 23:04.


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