[olug] disable the default search domain?
Ryan Stille
ryan at cfwebtools.com
Thu Dec 11 20:01:52 UTC 2008
We control our own DNS. I can't remove the wildcard, that wasn't my call.
I don't have a "search" or "domain" entry in my resolv.conf file. Whats
tripping me up is this, from the man page:
If domain isn't specified, the domain will be determined
from the local domain name (whatever comes after the first
dot). If the host name doesn't contain a domain, the root
domain is used.
I'm not sure what is meant by the root domain, but removing the
"mydomain.com" part from my hostname fixes the problem. But I thought
there would be a better way to turn this off, also I'm not sure what
other things might be adversely affected by removing the domain from the
hostname.
-Ryan
Kevin wrote:
> Presuming that you have control over the DNS server. Why do you need a
> wildcard DNS at all? If you don't have control over the DNS server,
> such as using the ones your ISP gave you, then I'd recommend using
> servers that don't have wildcard settings. Cox does this by default
> and gives you the option of manually setting DNS settings to another
> server that doesn't have wildcards. It's a one-time configuration, so
> it shouldn't be much of an inconvenience.
>
> Alternatively, I'd look at the man page for resolv.conf and check out
> the setting for "domain"; that and "search x" are mutually exclusive
> because one permits multiple while the other does not.
>
> On Thu, Dec 11, 2008 at 13:04, Ryan Stille <ryan at cfwebtools.com> wrote:
>
>> We have a DNS wildcard here. This is affecting my sendmail box. When
>> it tries to send mail to an invalid domain, such as foox123.com, the DNS
>> lookup initially fails, but then it tries foox123.com.mydomain.com and
>> it gets back an IP (because of the dns wildcard). So the message says
>> in the queue for days while it tries to deliver that message to a server
>> that's not a mail server.
>>
>> To be clear - I don't have any "search x" lines in my resolv.conf file.
>> Its happening because the machine's domain name is a search domain by
>> default. I haven't found a way to disable this, other than to change
>> the hostname to be "machinename" instead of "machinename.mydomain.com".
>> I'm not sure what else that might screw up. Any ideas?
>>
>> -Ryan
>>
>>
>> _______________________________________________
>> OLUG mailing list
>> OLUG at olug.org
>> https://lists.olug.org/mailman/listinfo/olug
>>
>>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> https://lists.olug.org/mailman/listinfo/olug
>
More information about the OLUG
mailing list