Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #166813
| From | Andy Smith <andy@strugglers.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: searching for hosts in domain local |
| Date | 2016-04-17 07:50 +0200 |
| Message-ID | <roNKO-7JO-11@gated-at.bofh.it> (permalink) |
| References | <roNhL-7uX-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Dan, On Sat, Apr 16, 2016 at 10:14:29PM -0700, Dan Hitt wrote: > I would like to drop the '.local' because it's an extra six characters > with absolutely no value. > > In principle, i think it should be possible to by just adding > search local > to my /etc/resolv.conf, but this absolutely does not work. (I imagine that > local is a really magic name in some contexts but not very magic in others.) You may need to use "local." with a dot at the end. What doesn't work about it? ".local" TLD is kind of special so you may find problems anyway - it's used for multicast DNS (Avahi). You may be better off picking a different domain for your local network. > Furthermore, /etc/resolv.conf doesn't want to be written, as it > says it is generated automatically, so even if it worked, it wouldn't > be such a good solution. You can override the domain search list that your DHCP server provides by editing /etc/dhcp/dhclient.conf and putting in either: supersede domain-name "local." or: prepend domain-name "local." or: append domain-name "local." Depending upon whether you want to have *only* your search domains, your search domains *first*, or your search domains *last*, respectively. See man dhclient.conf for more info. Cheers, Andy -- http://bitfolk.com/ -- No-nonsense VPS hosting
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
searching for hosts in domain local Dan Hitt <dan.hitt@gmail.com> - 2016-04-17 07:20 +0200
Re: searching for hosts in domain local Andy Smith <andy@strugglers.net> - 2016-04-17 07:50 +0200
Re: searching for hosts in domain local Andy Smith <andy@strugglers.net> - 2016-04-17 13:00 +0200
Re: searching for hosts in domain local Dan Hitt <dan.hitt@gmail.com> - 2016-04-17 18:50 +0200
Re: searching for hosts in domain local David Wright <deblis@lionunicorn.co.uk> - 2016-04-17 22:40 +0200
Re: searching for hosts in domain local Dan Hitt <dan.hitt@gmail.com> - 2016-04-18 03:40 +0200
Re: searching for hosts in domain local Dan Hitt <dan.hitt@gmail.com> - 2016-04-17 14:40 +0200
Re: searching for hosts in domain local David Wright <deblis@lionunicorn.co.uk> - 2016-04-17 22:20 +0200
Re: searching for hosts in domain local David Wright <deblis@lionunicorn.co.uk> - 2016-04-17 22:00 +0200
csiph-web