On Sat, 18 May 2013 15:18:15 +0100
আনন্দ কুমার সমাদ্দার Ananda Samaddar <ananda(a)samaddar.co.uk> wrote:
On Sat, 18 May 2013 08:58:41 -0500
"Mikkel L. Ellertson" <mellertson(a)gmail.com> wrote:
> On 05/18/2013 08:41 AM, আনন্দ কুমার সমাদ্দার Ananda Samaddar wrote:
> > Hello all,
> >
> > I've just installed Fedora 18 X86-64. I disabled and uninstalled
> > networkmanager and use the standard networking stuff which seems
> > to use dhclient. I'm using a standard ethernet connection.
> >
> > So I need to do two things. Feel free to tell me to RTFM if you
> > can provide a link!
> >
> > 1. How do I enable pre-pending of nameservers? I want to use
> > dnsmasq to cache DNS requests so I need to add 127.0.0.1 to the
> > top of resolv.conf. Google searchs take me to the Arch Wiki. I
> > can't seem to find a dhclient.conf file anywhere in /etc.
> >
> > 2. How do I assign a zone in firewalld to my connection? I want
> > to be able to open ports for bittorrent and XMPP jingle
> > voice/video. The firewalld wiki on the Fedora site doesn't seem
> > to be able to answer my question.
> >
> > thanks in advance,
> >
> > Ananda Samaddar
> You may want to read /usr/share/doc/initscripts-9.42.2/sysconfig.txt
> - search for PEERDNS.
>
> Mikkel
>
Thanks Mikkel but I don't think this works. In the ifcfg settings if
you specify a DNS server then the network is assumed to have static
DNS. So if I put DNS1=127.0.0.1 in the the ifcfg-em1 file all I get
in resolv.conf is that nameserver and not the one supplied by my
router underneath.
Ananda
Apologies for replying to myself. Issue one has been fixed by creating
the file /etc/dhcp/dhclient-em1.conf and adding the line "prepend
domain-name-servers 127.0.0.1;" to the file. I still need some info on
firewalld zones though.
Ananda