Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 15th January 2013, 11:13
daseagle daseagle is offline
Junior Member
 
Join Date: Oct 2011
Posts: 19
Thanks: 5
Thanked 0 Times in 0 Posts
Default Ubuntu 12.10 DNS loop problems

Hello!

I recently tried an Ubuntu 12.10. It was checked against falko's perfect server tutorial, install process was pretty much the same.

Enviroment:

Server is located behind a router, internal ip 192.168.111.251. Router has all the relevant ports (ftp, ssh, mail, dns, web, https) forwarded to this ip.

Problem:

I created the nameservers in ispconfig via the dns config wizard and checked their creation manually in /etc/bind. Then from my registrar, I pointed the example.com domain to the newly created nameservers. After waiting for some time for DNS to propagate, I realised something was off - basically I think I'm facing a circular reference problem.

My dns records look like this:

/etc/bind/pri.example.com [BM--] 0 L:[ 1+ 0 1/ 17] *(0 / 698b) 0036 0x024
$TTL 3600
@ IN SOA ns1.example.com. daseagle.gmail.com. (
2013011101 ; serial, todays date + todays serial #
7200 ; refresh, seconds
540 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;


example.com. 3600 A 82.208.133.99
example.com. 3600 MX 10 mail.example.com.
example.com. 3600 NS ns1.example.com.
www 3600 A 82.208.XXX.XX
mail 3600 A 82.208.XXX.XX

---

Help? I really don't know how to get around it.
Reply With Quote
Sponsored Links
  #2  
Old 16th January 2013, 10:15
daseagle daseagle is offline
Junior Member
 
Join Date: Oct 2011
Posts: 19
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Problem is not with DNS glue as it might look at first glance.

Damn server won't even resolve localhost via nslookup.
Reply With Quote
  #3  
Old 16th January 2013, 17:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in /etc/resolv.conf and /etc/hosts?
__________________
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
The Following User Says Thank You to falko For This Useful Post:
daseagle (16th January 2013)
  #4  
Old 16th January 2013, 17:37
daseagle daseagle is offline
Junior Member
 
Join Date: Oct 2011
Posts: 19
Thanks: 5
Thanked 0 Times in 0 Posts
Thumbs up

Thanks Falko for answering, unfortunately I was pressed for time and I had to revert to a 6.3 Centos. Heavier on the hardware but couldn't be helped.

I switched to a Centos 6.3, got it working after a bit of tinkering.

Question: I see that as of now, my server allows recursive queries. Can I change that in \etc\named.conf ? I see there a "recursion yes" part...

Last edited by daseagle; 16th January 2013 at 18:17.
Reply With Quote
  #5  
Old 16th January 2013, 18:22
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,176
Thanks: 829
Thanked 5,414 Times in 4,257 Posts
Default

1) The format is correct, but there are two records missing. If you use ns records in a zone that are subdomains of the same zone, then you have to add A-records for these subdomains in the zone. Its the same issue with your first post, so ubuntu was not a problem here, there were just 2 records missing.

A ns xx.xxx.xxx.xx 0
A ns2 xx.xxx.xxx.xx 0

Btw, the bind error that the zone was skipped due to errors must have been reported in /var/log/syslog on your Ubuntu server.

2) You dont have to run your own dns server.

3) Reason explained in 1).
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
daseagle (16th January 2013)
  #6  
Old 16th January 2013, 18:41
daseagle daseagle is offline
Junior Member
 
Join Date: Oct 2011
Posts: 19
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Many thanks for the reply.

Works perfectly now.

So final lesson: if I have ns.example.com for example.com, then I must also have A records for ns.example.com.

So noted.


Btw, I skipped the ubuntu not because of the dns, I knew it was something I missed, but because of the issues it had with my 4x scsi controllers.

Problem solved!
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
Ubuntu 12.10 Multiserver ChrisZ Installation/Configuration 2 15th December 2012 21:09
DNS Problems IKShadow Installation/Configuration 2 11th January 2011 22:12
Problem send/receive Courier+Postfix+Squirrelmail Pirk Installation/Configuration 2 21st May 2010 13:26
Squid Proxy Caching on Linux obzerver Installation/Configuration 4 13th August 2008 19:51
DNS, rDNS, & PTR problems Ashaman074 Installation/Configuration 19 29th May 2008 19:39


All times are GMT +2. The time now is 18:13.


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