PDA

View Full Version : DNS service and files


jeanjacquesjeanjacques
23rd November 2005, 19:46
Hello,

I'm sorry to bother you with this again but i really don't find any answers.

I've made an /init.d/bind stop and when i go to see inside ISPconfig services panel the bind server stills online, i really don't get it.
What can i do to stop the bind service associated with ISPconfig ?

I would like to know if i create a domain using ISP config where will it put the files related to that domain ?

Thank you for your help,

Jean-Jacques

till
23rd November 2005, 20:26
I've made an /init.d/bind stop and when i go to see inside ISPconfig services panel the bind server stills online, i really don't get it.
What can i do to stop the bind service associated with ISPconfig ?


In ISPConfig go to Management > Server > Services. Set the status for DNS to Off and hit safe.

I would like to know if i create a domain using ISP config where will it put the files related to that domain ?

/home/www/www.yourdomain.com/web/ or /var/www/www.yourdomain.com/web/ or in another webroot if you chose an other path as you installed ISPConfig.

jeanjacquesjeanjacques
24th November 2005, 11:06
In ISPConfig go to Management > Server > Services. Set the status for DNS to Off and hit safe.
Ok thank you for this, it's working perfectly.

/home/www/www.yourdomain.com/web/ or /var/www/www.yourdomain.com/web/ or in another webroot if you chose an other path as you installed ISPConfig.
I have followed the default installation but all my files are located inside /home/www/my.wesite.net

I'm still very confused because i thought that my DNS zone file related to my website would be also be in this folder but it's not, i'm not sure but after spending some time to look for it i believe that the file is located inside the /etc/bind folder.

I have also tried to see if the zone file generated by ISPconfig was correct but apprently not, http://dnsreport.com/tools/dnsreport.ch?domain=eatn.net
What am i doing wrong ?

Best regards,

Jean-Jacques

falko
24th November 2005, 11:29
I have followed the default installation but all my files are located inside /home/www/my.wesite.net
Yes, and your html files, php, etc, goes into /home/www/my.wesite.net/web.


I'm still very confused because i thought that my DNS zone file related to my website would be also be in this folder but it's not, i'm not sure but after spending some time to look for it i believe that the file is located inside the /etc/bind folder.
It depends on your distribution where the DNS files are. For Debian and Ubuntu it's /etc/bind, for others it might be /var/named, /var/lib/named, ...

I have also tried to see if the zone file generated by ISPconfig was correct but apprently not, http://dnsreport.com/tools/dnsreport.ch?domain=eatn.net
What am i doing wrong ?

Is your nameserver authoritative for your domain? Do you use one or more nameservers for your domain? Do they have static public IP addresses, or are they in a local network?

jeanjacquesjeanjacques
24th November 2005, 11:44
Thank you Falko for your precious help, it's very nice. :)

Is your nameserver authoritative for your domain? Do you use one or more nameservers for your domain? Do they have static public IP addresses, or are they in a local network?

I have one server which is doing dns, http(s), php and mail under debian stable.
So yes i have only one nameserver for my domains.
I have one static public adress for 3 different domains.
My server is connected to the internet thru a router (i have configured a NAT table on this router to forward to my server port 80, 81,53,110 etc..).

Before using ISPconfig everything was working properly, so i presume i have to learn how to user ISPconfig properly because it's such a fantastic and powerfull tool !

But i've readen the admin's doc one more time but i don't really find complementary informations about how to set up my dns correctly.

Do you know what's wrong ?

This is my pri.eatn.net file:
$TTL 86400
@ IN SOA ns1.eatn.net. admin.eatn.net. (
2005112406 ; serial, todays date + todays serial #
28800 ; refresh, seconds
7200 ; retry, seconds
604800 ; expire, seconds
86400 ) ; minimum, seconds
;
NS ns1.eatn.net. ; Inet Address of name server 1
NS ns2.eatn.net. ; Inet Address of name server 2
;

www MX 10 strategic-monitoring.com.

eatn.net. A 193.251.177.175
ns2.eatn.net A 193.251.177.175
ns1.eatn.net A 193.251.177.175
eatn.net A 193.251.177.175

www.eatn.net CNAME eatn.net.

;;;; MAKE MANUAL ENTRIES BELOW THIS LINE! ;;;;

falko
24th November 2005, 12:54
Did you forward port 53 TCP and UDP from your router to your server?

I doubt that you want this:
www MX 10 strategic-monitoring.com.
I guess you want

MX 10 strategic-monitoring.com.

because you want to send emails to <user>@eatn.net and not <user>@www.eatn.net, right?

O, I tried a dig eatn.net and got no answer section which means there's something wrong. I guess the problem is that ns1.eatn.net is the authoritative name server for eatn.net. It's the hen <-> egg problem. Try to use another domain for the name server.

rosa hsiao
27th November 2005, 05:36
O, I tried a dig eatn.net and got no answer section which means there's something wrong. I guess the problem is that ns1.eatn.net is the authoritative name server for eatn.net. It's the hen <-> egg problem. Try to use another domain for the name server.

I have the same problem. Do you mean that ns1.eatn.net should use other Managed DNS server first and then ns1.eatn.net can become authoritavie name server for eatn.net or other virturn domains?

till
27th November 2005, 10:25
ns1.eatn.net can only become autoritive nameserver for other domains, but never for itself (eatn.net).

rosa hsiao
27th November 2005, 11:31
If I registered test1.com.tw at ISP "octor.com" and want to use dns.test1.com.tw as my nameserver for test1.com.tw. I have to use ISP's Managed DNS server at rsdn1.octor.com to resolve dns.test1.com.tw to my external IP address first. Then I can use dns.test1.com.tw to act as a nameserver for test1.com.tw and test2.com.tw or other domains. Am I right or still misunderstaning something?

falko
27th November 2005, 16:16
If I registered test1.com.tw at ISP "octor.com" and want to use dns.test1.com.tw as my nameserver for test1.com.tw. I have to use ISP's Managed DNS server at rsdn1.octor.com to resolve dns.test1.com.tw to my external IP address first. Then I can use dns.test1.com.tw to act as a nameserver for test1.com.tw and test2.com.tw or other domains. Am I right or still misunderstaning something?
You're still misunderstanding something. You can't use dns.test1.com.tw as name server for test1.com.tw, as Till mentioned above:

ns1.eatn.net can only become autoritive nameserver for other domains, but never for itself (eatn.net).

Smitty
27th November 2005, 17:54
... let me understand this correctly...

If I register my new domain (i.e smittydomain.com), and I wish to operate my own authoritative nameserver for that same domain (i.e ns1.smittydomain.com), you're saying I can't do that (without dependence upon an already registered nameserver elsewhere)? My domain registrar has told me they can register my nameserver at the same time that I register my new domain as part of the single registration process for my new domain.

Do all registrar's not have the capability to register the nameservers for that same domain, if called upon to do so?

.. not wishing to get caught in the stumblings of which came first - the chicken or the egg.

.. in advance, thanks.

Smitty

falko
27th November 2005, 22:47
I recommend that you register a "technical" domain (a domain you use for technical purposes only), then create ns1.<technicaldomain> and ns2.<technicaldomain> as A records, and then use these name servers when you register other domains.

wkdboi
26th June 2007, 21:45
Hi All,

I have installed Cent OS 5 and ISP Config.

I log into ISP config it tells me bind dns = offline

I don't know what is wrong.

Domain is www.mad2.co.uk and have set up bind to use ns1.dnsmaster.net for www.mad2.co.uk IP for Nameserver is 212.84.167.18

And I am using my Static IP 84.45.211.25 for all other domains so in effect a loopback on itself. I have opened tcp/udp port 53 to the server but can't get any local domain like 1.mad2.co.uk to work.

If anyone can help would be much appreciated

Many Thanks

Linux Webserver Newbie

falko
27th June 2007, 20:00
What's the output of netstat -tap? Any BIND errors in your log files?
Did you disable SELinux? Did you use the "Perfect Setup" for CentOS 5.0 to set up your server?
Which DNS server is the primary nameserver for your domain?

wkdboi
27th June 2007, 20:14
What's the output of netstat -tap?
[root@server1 ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:mysql *:* LISTEN 2357/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1945/portmap
tcp 0 0 *:hosts2-ns *:* LISTEN 3505/ispconfig_http
tcp 0 0 server1.mad2.co.uk:domain *:* LISTEN 4174/named
tcp 0 0 localhost.localdomai:domain *:* LISTEN 4174/named
tcp 0 0 *:ftp *:* LISTEN 3811/proftpd: (acce
tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2218/cupsd
tcp 0 0 localhost.localdomain:rndc *:* LISTEN 4174/named
tcp 0 0 *:smtp *:* LISTEN 4104/master
tcp 0 0 *:892 *:* LISTEN 1982/rpc.statd
tcp 1 0 server1.mad2.co.uk:47970 75.174.92.64.static.re:http CLOSE_WAIT 2624/python
tcp 1 0 server1.mad2.co.uk:47968 75.174.92.64.static.re:http CLOSE_WAIT 2624/python
tcp 1 0 server1.mad2.co.uk:47972 75.174.92.64.static.re:http CLOSE_WAIT 2624/python
tcp 1 0 server1.mad2.co.uk:59341 hawking-if-a.mirrorser:http CLOSE_WAIT 2624/python
tcp 1 0 server1.mad2.co.uk:35637 ns1.centos.org:http CLOSE_WAIT 2624/python
tcp 0 0 *:imaps *:* LISTEN 2391/dovecot
tcp 0 0 *:pop3s *:* LISTEN 2391/dovecot
tcp 0 0 *:pop3 *:* LISTEN 2391/dovecot
tcp 0 0 *:imap *:* LISTEN 2391/dovecot
tcp 0 0 *:http *:* LISTEN 3676/httpd
tcp 0 0 *:ssh *:* LISTEN 2236/sshd
tcp 0 0 localhost6.localdomain:rndc *:* LISTEN 4174/named
tcp 0 0 *:https *:* LISTEN 3676/httpd
tcp 0 0 server1.mad2.co.uk:ssh ::ffff:10.0.0.8:62065 ESTABLISHED 6740/0

Any BIND errors in your log files? None that I know of
Did you disable SELinux? Yes the How to Forge Cent OS 5 32 bit Did you use the "Perfect Setup" for CentOS 5.0 to set up your server? Yes
Which DNS server is the primary nameserver for your domain?Primary name server is ns1.dnsmaster.net My domain register is Skymarket so it's their dns server

falko
28th June 2007, 22:38
BIND is running, I can see it in the output ot netstat -tap.

Primary name server is ns1.dnsmaster.net My domain register is Skymarket so it's their dns server
So did you create slave zones then for mad2.co.uk on your ISPConfig server?

Can you run
dig @localhost mad2.co.ukon your ISPConfig server? What's the output?

wkdboi
29th June 2007, 00:19
BIND is running, I can see it in the output ot netstat -tap.


So did you create slave zones then for mad2.co.uk on your ISPConfig server?

Can you run
dig @localhost mad2.co.ukon your ISPConfig server? What's the output?

[root@server1 ~]# dig @localhost mad2.co.uk

; <<>> DiG 9.3.3rc2 <<>> @localhost mad2.co.uk
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 8971
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;mad2.co.uk. IN A

;; ANSWER SECTION:
mad2.co.uk. 86400 IN A 10.0.0.50

;; AUTHORITY SECTION:
mad2.co.uk. 86400 IN NS ns1.dnsmaster.net.
mad2.co.uk. 86400 IN NS ns2.dnsmaster.net.

;; ADDITIONAL SECTION:
ns2.dnsmaster.net. 172680 IN A 212.84.168.18

;; Query time: 3 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Thu Jun 28 22:18:36 2007
;; MSG SIZE rcvd: 109

falko
29th June 2007, 19:46
It's responding at least.

Two problems:
1)
;; ANSWER SECTION:
mad2.co.uk. 86400 IN A 10.0.0.50

Why do you use a local IP address? Nobody is then able to access your site from the outside...

2) I get this:
;; ANSWER SECTION:
mad2.co.uk. 43200 IN A 84.45.211.25which means that the primary DNS has stored another IP address for the domain than your own DNS server. This leads me to the assumption that you set up the mad2.co.uk zone as a master zone instead of a slave zone on your own nameserver...

wkdboi
29th June 2007, 19:59
It's responding at least.

Two problems:
1)
Why do you use a local IP address? Nobody is then able to access your site from the outside...

2) I get this:
;; ANSWER SECTION:
mad2.co.uk. 43200 IN A 84.45.211.25which means that the primary DNS has stored another IP address for the domain than your own DNS server. This leads me to the assumption that you set up the mad2.co.uk zone as a master zone instead of a slave zone on your own nameserver...

Hmmm this could very well be true I set everything up using ISP config so how do I go about checking and changing to slave dns

Copy of named.conf

[root@server1 etc]# nano named.conf

GNU nano 1.3.12 File: named.conf


zone "1.mad2.co.uk" {
type master;
file "pri.1.mad2.co.uk";
};
zone "mad2.co.uk" {
type master;
file "pri.mad2.co.uk";
};


zone "ns1.mad2.co.uk" {
type slave;
file "sec.ns1.mad2.co.uk";
masters { 84.45.211.25; };
};


//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////

falko
30th June 2007, 17:25
Take a look at chapter 6 on http://www.howtoforge.com/ispconfig_dns_godaddy_p3 .

wkdboi
30th June 2007, 18:45
not sure how that helps at the mo

falko
1st July 2007, 14:47
It shows you how to create slave zones with ISPConfig, because that's what you need - a slave zone for mad2.co.uk instead of a master zone. Delete the master zone for mad2.co.uk and create a slave zone instead.

wkdboi
1st July 2007, 14:53
I have changed it but still not sure if it's gonna work

falko
2nd July 2007, 19:41
What does dig @localhost mad2.co.uk show now?

wkdboi
2nd July 2007, 21:07
Had to rebuild the server and now isp config wont install :'(

till
2nd July 2007, 21:21
How shall we help you if you do not post the error message that you get when you try to install ISPConfig...

wkdboi
2nd July 2007, 21:22
Error message when running ./setup on ispconfig 2.2.14

no lex in (/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/libexec)

till
2nd July 2007, 21:28
This means that you missed to install flex.

On debian or ubuntu, run:

apt-get install flex

on redhat / centos:

yum install flex

wkdboi
2nd July 2007, 21:31
I am a silly bugger.... LOL