#1  
Old 30th April 2012, 11:33
we_are_borg we_are_borg is offline
Junior Member
 
Join Date: Aug 2008
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default [Ubuntu 12.04] DNS problem

I have a DNS issue at this point i am using ISPConfig for internal use only so to the outside world its not important that they can contact me.

Situation is as follows i made an domain including DNS zones in ISPConfig:
Code:
A	mail	192.168.1.123	0	
A	vertaal.loc.	192.168.1.123	0	
A	www	192.168.1.123	0	
MX	vertaal.loc.	mail.vertaal.loc.	10	
NS	vertaal.loc.	ns1.vertaal.loc.	0	
NS	vertaal.loc.	ns2.vertaal.loc.	0
When i do a DIG i get the following:
Code:
; <<>> DiG 9.8.1-P1 <<>> vertaal.loc
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 57623
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;vertaal.loc.INA

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Mon Apr 30 11:29:02 2012
;; MSG SIZE  rcvd: 29
My /etc/network/interfaces is as follows:
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet static
        address 192.168.1.123
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 127.0.0.1 192.168.1.123 192.168.1.1
        dns-search webhosting.loc
The server is installed using http://www.howtoforge.com/perfect-se...ot-ispconfig-3 as manual every command was executed in that howto.

I hope that some one can help me.
Reply With Quote
Sponsored Links
  #2  
Old 1st May 2012, 15:45
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Does
Code:
dig @localhost vertaal.loc
work? What are the outputs of
Code:
netstat -tap
and
Code:
netstat -uap
?
__________________
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 1st May 2012, 17:07
we_are_borg we_are_borg is offline
Junior Member
 
Join Date: Aug 2008
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko View Post
Does
Code:
dig @localhost vertaal.loc
work? What are the outputs of
Code:
netstat -tap
and
Code:
netstat -uap
?
Thanks Falko here under the outputs of the commands. It's strange but with ISPConfig i have always got problems with the DNS while when i use virtualmin it just works straight away.

DIG @Localhost
Code:
; <<>> DiG 9.8.1-P1 <<>> @localhost vertaal.loc
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 37483
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;vertaal.loc.INA

;; Query time: 2 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue May  1 17:02:13 2012
;; MSG SIZE  rcvd: 29
netstat -tap
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 localhost.localdo:10025 *:*                     LISTEN      1887/master
tcp        0      0 *:mysql                 *:*                     LISTEN      927/mysqld
tcp        0      0 *:pop3                  *:*                     LISTEN      906/dovecot
tcp        0      0 *:imap2                 *:*                     LISTEN      906/dovecot
tcp        0      0 *:http-alt              *:*                     LISTEN      1966/apache2
tcp        0      0 *:http                  *:*                     LISTEN      1966/apache2
tcp        0      0 *:tproxy                *:*                     LISTEN      1966/apache2
tcp        0      0 *:ftp                   *:*                     LISTEN      1907/pure-ftpd (SER
tcp        0      0 server1.webhosti:domain *:*                     LISTEN      946/named
tcp        0      0 localhost.locald:domain *:*                     LISTEN      946/named
tcp        0      0 *:ssh                   *:*                     LISTEN      799/sshd
tcp        0      0 *:smtp                  *:*                     LISTEN      1887/master
tcp        0      0 localhost.localdoma:953 *:*                     LISTEN      946/named
tcp        0      0 *:https                 *:*                     LISTEN      1966/apache2
tcp        0      0 *:imaps                 *:*                     LISTEN      906/dovecot
tcp        0      0 *:pop3s                 *:*                     LISTEN      906/dovecot
tcp        0      0 localhost.localdom:9000 *:*                     LISTEN      1785/php-fpm.conf)
tcp        0      0 localhost.localdo:10024 *:*                     LISTEN      1019/amavisd (maste
tcp        0    404 server1.webhosting.:ssh 192.168.1.200:52185     ESTABLISHED 2316/0
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      906/dovecot
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      906/dovecot
tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      1907/pure-ftpd (SER
tcp6       0      0 [::]:domain             [::]:*                  LISTEN      946/named
tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      799/sshd
tcp6       0      0 [::]:smtp               [::]:*                  LISTEN      1887/master
tcp6       0      0 ip6-localhost:953       [::]:*                  LISTEN      946/named
tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      906/dovecot
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      906/dovecot
netstat -uap
Code:
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 server1.webhosti:domain *:*                                 946/named
udp        0      0 localhost.locald:domain *:*                                 946/named
udp        0      0 server1.webhosting.:ntp *:*                                 802/ntpd
udp        0      0 localhost.localdoma:ntp *:*                                 802/ntpd
udp        0      0 *:ntp                   *:*                                 802/ntpd
udp6       0      0 [::]:domain             [::]:*                              946/named
udp6       0      0 fe80::20c:29ff:fe72:ntp [::]:*                              802/ntpd
udp6       0      0 ip6-localhost:ntp       [::]:*                              802/ntpd
udp6       0      0 [::]:ntp                [::]:*                              802/ntpd
Reply With Quote
  #4  
Old 1st May 2012, 17:37
pititis pititis is offline
Senior Member
 
Join Date: Dec 2010
Location: München
Posts: 364
Thanks: 38
Thanked 88 Times in 68 Posts
Default

You need an A records for ns1 and ns2

Cheers
Reply With Quote
The Following User Says Thank You to pititis For This Useful Post:
we_are_borg (1st May 2012)
  #5  
Old 1st May 2012, 18:04
we_are_borg we_are_borg is offline
Junior Member
 
Join Date: Aug 2008
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by pititis View Post
You need an A records for ns1 and ns2

Cheers
Thanks that did it.

Why did ISPConfig not do it for me i used the wizard to make the zone.
Reply With Quote
  #6  
Old 2nd May 2012, 11:32
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Quote:
Originally Posted by we_are_borg View Post
Why did ISPConfig not do it for me i used the wizard to make the zone.
Because usually you use nameservers from another zone (i.e., the A records for the nameservers are defined in that other zone). In your case the nameservers are from the same zone.
__________________
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
  #7  
Old 2nd May 2012, 17:32
we_are_borg we_are_borg is offline
Junior Member
 
Join Date: Aug 2008
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko View Post
Because usually you use nameservers from another zone (i.e., the A records for the nameservers are defined in that other zone). In your case the nameservers are from the same zone.
Maybe something that ISPConfig can take in account or give an explicit warning.
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
Major recovery Toucan Installation/Configuration 18 9th August 2011 11:45
Problem: DNS Server + ISPConfig Server javierg Installation/Configuration 1 5th July 2010 16:59
Problem in DNS createch Installation/Configuration 1 2nd April 2010 13:18
DNS Zone Transfer Problem centosarus Installation/Configuration 11 17th July 2009 16:11
DNS problem wrender Server Operation 2 25th November 2006 16:57


All times are GMT +2. The time now is 10:14.


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