Re: NetworkManager and extra options in /etc/resolv.conf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tarjei Knapstad wrote:
2009/6/18 L <yuanlux@xxxxxxxxx>:
On Thu, Jun 18, 2009 at 8:31 PM, Tarjei
Knapstad<tarjei.knapstad@xxxxxxxxx> wrote:
Due to local network setup I need to add a line to /etc/resolv.conf
("options single-request"), otherwise I lose two out of three DNS
lookups. Is there any way to make NM add this line when writing
/etc/resolv.conf? (other than hacking the code and explicitly adding
it for every network I connect to through DHCP)

if you mean name servers, you can add a line to

/etc/dhclient-eth1.conf  or /etc/dhclient-eth0.conf


prepend domain-name-servers XXX.XXX.XXX.XXX,yyy.yyy.yyy.yyy;


No, I need an options line. My resolv.conf looks like this after
manually adding the last line every time NM rewrites the file:

I don't think "L" understood the question, but his answer may have merit anyway. Instead of prepending name servers, add the line you want. I don't think order is important with options.

# Generated by NetworkManager
domain aaaa.bbbbb
search aaaa.bbbbb
nameserver 192.168.0.0
nameserver 192.168.0.1
options single-request

So I would like NM to automatically add the "options single-request"
line when writing resolv.conf instead of needing some extra script to
do the job.

Regards,
--
Tarjei



--
Bill Davidsen <davidsen@xxxxxxx>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux