----- Original Message -----
From: "Tom Eastep" <teastep@shorewall.net>
To: <jens@pacificsun.ca>
Sent: Friday, March 08, 2002 3:21 AM
Subject: Re: [Shorewall-users] Basic question
> www.dns.net is down right now so I can''t see the syntax for
specifying
> multiple servers to dnsrd. The following hack should get you going though.
> It extracts the IP address of the first server in the /etc/resolv.conf
file;> that file is set up by your dhcp client.:
>
> DNS_IP=`grep ^nameserver /etc/resolv.conf | cut -d'' ''
-f2 | head -n1`
> dnsrd -s $DNS_IP
>
> I would be surprised if there isn''t an option in dnsrd to have it
look in
> /etc/resolv.conf ifself but again, I have never used the program and
don''t
> currently have access to the documentation.
>
> -Tom
> --
> Tom Eastep \ Shorewall - iptables made easy
> AIM: tmeastep \ http://www.shorewall.net
> ICQ: #60745924 \ teastep@shorewall.net
>
> ----- Original Message -----
> From: "Jens" <jens@pacificsun.ca>
> To: <shorewall-users@shorewall.net>
> Sent: Friday, March 08, 2002 12:15 AM
> Subject: Re: [Shorewall-users] Basic question
>
>
> > Ok, I hate to ask for more help but I just can''t figure out
how to get
the> > DNS stuff sorted. Is there anybody else on this list that uses dnrd to
> allow
> > dns requests from the internal network to pass to the outside world ?
> > I can apparently get everything going if I start up dnrd with the
option
> > ''-s ip'' where ip is the ip number of the dns server
from my isp. The
> problem
> > is that I use dhcp to configure the interface to my ISP and I have no
clue> > how to automate things so that the dnrd command gets the proper dns
server> ip
> > at startup.
> >
> > Regards
> >
> > Jens
> >
> >
> >
> >
> > On March 7, 2002 10:40 am, you wrote:
> > > On March 7, 2002 04:02 am, you wrote:
> > > > So your firewall runs a DNS server? I thought you were using
your
> ISP''s
> > > > servers in which case 192.168.0.2 should be asking one of
those
> servers
> > > > for "stuff over port 53".
> > > >
> > > > -Tom
> > >
> > > Tom, thank you VERY much for all your patience with me. This
message
got> me
> > > thinking on exactly how the DNS is done on this system vs the
other
> > > firewall. Well, under the heading of
''duuuuuuhhhhh'', I found out that
> the
> > > other system is running dnrd and so is forwarding all the DNS
requests
> to
> > > the appropriate server at my ISP. I have now been able to produce
test
> > > pings on my system using the domain name.
> > > I am having a lot of problems wrapping my head around dnrd and
dns in
> > > general so this will require some major digging on my part. From
what
I> saw
> > > of dnrd on Smoothwall, it is simply started as a daemon at
startup.
The> > > only way I could get dnrd to work was if I specified the ip # of
the
DNS> > > server from my ISP (something that doesn''t seem to be
necessary on
> > > Smoothwall). In any case, it works !!!!
> > >
> > > May I suggest some mention in the troubleshooting section on dns
from
> > > behind the firewall ? It might help somebody like me who knows
enough
to> > > get into trouble but can''t find his way out.
> > >
> > > Thanks again !!!!
> > >
> > > Jens
> > > _______________________________________________
> > > Shorewall-users mailing list
> > > Shorewall-users@shorewall.net
> > > http://www.shorewall.net/mailman/listinfo/shorewall-users
> > _______________________________________________
> > Shorewall-users mailing list
> > Shorewall-users@shorewall.net
> > http://www.shorewall.net/mailman/listinfo/shorewall-users
> >
>