Pinging any non-existent domain hits me too

Mark_Andrews at isc.org Mark_Andrews at isc.org
Tue Jul 30 00:25:54 UTC 2002


> Trying to work through a couple of configuration issues I have on this one
> server.  Basically, any domain that I ping that is non-existent, also
> resolves to my address, instead of failing. For example, if I ping
> www.yahoo.com, that's great.  Pinging any of my local domains, or any other
> "real" domain works fine.  Trying to ping "15135135u3ououo.com" resolves
> back to my main domain. :(
> 
> I use wildcards to handle virtual domains on this box, and my best guess is
> that it has something to do with that, but its been a while since  I last
> devoted many brain cells to bind.

	Yes, it is the wildcard combined with the search process
	in the resolver.  The solution is to stop taking a short
	cut by using a wildcard and add a CNAME or A record for
	each virtual domain you create.

	Wildcard were designed for when there was no way to know
	all the names required in a zone.  They were primarily
	designed to allow forwarding of mail between different mail
	networks by mapping names at the gateways and having a
	wildcard MX to bring the reply traffic back through the
	gateway.

	Mark

> 
> [ zone file ]----------------
> @     IN SOA   mydomain.com. hostmaster.mydomain.com. (
>          2001040505 ; serial
>          86400 ; refresh
>          3600 ; retry
>          3600000 ; expire
>          604800 ; default_ttl
>          )
> localhost      IN A  127.0.0.1
> www      IN CNAME mydomain.com.
> mail     IN CNAME mydomain.com.
> ftp      IN CNAME mydomain.com.
> @     IN MX 5  mydomain.com.
> @     IN NS mydomain.com.
> @     IN A  123.123.123.1234
> *     IN A  123.123.123.123
> monet    IN A  123.123.123.123
> mydomain.com.    IN A  123.123.123.123
> 
> -------------
> 
> Thanks much in advance for any guidance or insights.
> 
> Cheers.
> Scott
> 
> 
> 
> 
--
Mark Andrews, Internet Software Consortium
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark.Andrews at isc.org


More information about the bind-users mailing list