Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dns-server zone 1

Status
Not open for further replies.

netcomander

Programmer
Jul 20, 2001
68
DE
hi all,

I have a web-server, which shall contain its own primary
dns-server where my domain is listed. I use the the
secondary dns-server of my isp.

Now to my problem. The zone egdomain.net leads to
the soa:
@ IN SOA srv.domain.net. hostmaster.egdomain.net. (
...)
NS srv.egdomain.net ...

The dns-server is working fine as a cache-nameserver,
and I do can successfully make a
dig -x 127.0.0.1,
but I cant make a
dig egdomain.net
nor can I make a
dig instead I get an answer, that shows up, that
the zone "." was used.
Doesn't the dns-server musst use the existing
zone "egdomain.net" first, bevor using the
zone "."???

further more I want to set up the registered
names egdomain.de and egdomain.net.de

I did this with a zone like

@ IN SOA srv.egdomain.net hostmaster.egdomain.net (
...)
NS srv.egdomain.net. ...
NS ns2.isp.com.
MX srv.egdomain.net.

srv A 215.118.112.33
egdomain.de CNAME srv

Is this ok? Or should I write
CNAME srv ?

Thanks so far. I would really appriciate
any hint, that leads me to the light;)

greetings markus
 
Hi,

Presumably you have pointed to the zone file from your /etc/named.conf :

zone "egdomain.net" {
type master;
file "egdomain.net.zone";
};

... and placed the zone file in /var/named or wherever your options 'directory' specifies.

I notice the zone file starts with 'srv' instead of the domain name - it should look roughly like this :

$TTL 86400
@ IN SOA egdomain.net. hostmaster.egdomain.net. (
2002032501; serial
28800 ; refresh
7200 ; retry
604800 ; expire
86400 ; ttl
)

@ IN NS ns1.egdomain.net.
;
;
egdomain.net. IN A 172.16.16.1
ns1 IN A 172.16.16.1
www IN A 172.16.16.1
www2 IN CNAME www


On the names, you can either :

(i) use a name without a trailing period (e.g. www) . In that case its added on to the domain name at the top. I.e. egdomain.net. becomes
(ii) If you end the name with a period (.) then it is a fully qualified name and stands as is.

So, if the domain is set to 'egdomain.net.' then :

www

are identical .

Can you succesfully do :

$ dig @localhost egdomain.net MX
$ dig @localhost egdomain.net NS
$ dig @localhost (etc.)

If it works locally, then you would need to make sure that your port 53 (dns) is allowed through your firewall and point your domain dns servers at your IP address.

Hope this helps
 
hi ifincham,

thanks for all the help I already got from you ;),
besides your example works fine on my server.
I have a last question, which would solve all my
problems.

what do I do when the domain I want to support
within my dns differs from the domain of my
dns-server. Somethin like
ns.domain.de => my server
=> the domain, which should be
provided

do I use
@ IN SOA domain.de. hostmaster.domain.de. (
or
@ IN SOA otherdomain.de. hostmaster.domain.de...?

and would the rest look like
@ IN NS ns1.domain.de.
;
otherdomain.de. IN A 172.16.16.5
ns1 IN A 172.16.16.1
www IN A 172.16.16.5
www2 IN CNAME www

It would be veeeery cool, if you had an answer for this too.

greeting and thank you very much
markus
 
Hi,

For multiple domains you just have multiple zone files and point to them from /etc/named.conf :

zone "egdomain.net" {
type master;
file "egdomain.net.zone";
};
zone "egdomain.com" {
type master;
file "egdomain.com.zone";
};
zone "egdomain.de" {
type master;
file "egdomain.de.zone";
};

etc., etc.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top