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!

wildcard - what am I doing wrong ?

Status
Not open for further replies.

idanj

ISP
Mar 6, 2008
6
IL
Hey all.

I am trying to configure BIND on RH Linux to resolve any domain that's pointed to the name server(s) to a specific IP, without adding the domain to name server.
The purpose of this is so that I'll be able to set a domain's name servers to ns1.domain.com and ns2.domain.com and it will resolve to my server immidiately, without having to add it to the hosting.

This is my named.conf:
==========================================================
include "/etc/rndc.key";

controls {
inet 127.0.0.1 allow { localhost; } keys { "rndckey"; };
};

options {
allow-transfer { 127.0.0.1; };
allow-recursion { 127.0.0.1; };

directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
};

zone "." IN {
type master;
file "/var/named/rootzone.db";
};
==========================================================

and this is rootzone.db:
==========================================================
$TTL 14400
$ORIGIN .
@ 86400 IN SOA ns1.domain.com. idan.domain.com. (
2008031002
86400
7200
3600000
86400
)

IN NS ns1.domain.com.
IN NS ns2.domain.com.

* 14400 IN A 1.2.3.4

==========================================================

Any idea what am I doing wrong ? I've looked everywhere but to no avail.

HELP!
Thanks
Idan

 
Thanks!

The problem was that instead of :

IN NS ns1.domain.com.
IN NS ns2.domain.com.

I should have done :

. IN NS ns1.domain.com.
. IN NS ns2.domain.com.

Idan
 
Oh, sorry. I thought sure it needed the A records (like a root.hints/root.cache file) to bootstrap.

Watch out using such a server, other things will break if you aren't careful (mail routing for one.)

eugene
 
Actually this is the exact problem I'm having right now.. is there a way to keep wildcard and still be able to email the domains in the zone file ?


Thanks again
Idan
 
The only ways that I know of.

declare a wildcard MX record to a local mail relay (that isn't using your DNS). That will deliver outbound to all your external and internal sites.

Or hardcode that relay in all your mail configurations.

Do you really need ALL domains?

eugene
 
yes, I do... it's a domain parking service...

Thank you
Idan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top