Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: User

help with tinydns setup

 

 

Gentoo user RSS feed   Index | Next | Previous | View Threaded


jtp at nc

Nov 7, 2009, 1:49 PM

Post #1 of 6 (494 views)
Permalink
help with tinydns setup

All,

I'm trying to set up a DNS server here for a lab environment.

- hijacking a TLD (linux.com let's say, as an example)
- trying to point several Linux boxen in a sandbox with no internet connectivity

So, here's a copy of my tinydns data file:

.linux.com:172.18.109.125:a:259200
=server1.linux.com:14.17.108.241:86400
=server2.linux.com:14.17.108.242:86400

I've been following instructions on the following two pages in order
to get some guidance on where I'm going with this:

http://www.fredshack.com/docs/djbdns.html
http://wiki.vpslink.com/HOWTO:_Setup_a_DNS_server_with_tinydns

Inside of /etc/dnscache/root/servers/linux.com I have "127.0.0.1" so
that the server knows to query the tinydns daemon running.
Unfortunately, however, a "dig @<ipAddr> server1.linux.com" doesn't
seem to work.

Thoughts? Ideas?

Thanks!
-j


roy at wright

Nov 7, 2009, 1:52 PM

Post #2 of 6 (477 views)
Permalink
Re: help with tinydns setup [In reply to]

On Nov 7, 2009, at 3:49 PM, James wrote:

> All,
>
> I'm trying to set up a DNS server here for a lab environment.
>
> Thoughts? Ideas?
>

I use dnsmasq as my home dns/dhcp server. It was super easy to
configure. You might want to give it a look.

HTH,
Roy


lists at f_philipp

Nov 8, 2009, 2:14 AM

Post #3 of 6 (472 views)
Permalink
Re: help with tinydns setup [In reply to]

James schrieb:
> All,
>
> I'm trying to set up a DNS server here for a lab environment.
>
> - hijacking a TLD (linux.com let's say, as an example)
> - trying to point several Linux boxen in a sandbox with no internet connectivity
>
> So, here's a copy of my tinydns data file:
>
> .linux.com:172.18.109.125:a:259200
> =server1.linux.com:14.17.108.241:86400
> =server2.linux.com:14.17.108.242:86400
>
[...]
>
> Inside of /etc/dnscache/root/servers/linux.com I have "127.0.0.1" so
> that the server knows to query the tinydns daemon running.
> Unfortunately, however, a "dig @<ipAddr> server1.linux.com" doesn't
> seem to work.
>
>

What do you mean with "doesn't seem to work"? Timeout? Wrong answer?
Attachments: signature.asc (0.25 KB)


jtp at nc

Nov 8, 2009, 6:58 PM

Post #4 of 6 (460 views)
Permalink
Re: help with tinydns setup [In reply to]

On Sun, Nov 8, 2009 at 5:14 AM, Florian Philipp
<lists [at] f_philipp> wrote:
> James schrieb:
>> All,
>>
>> I'm trying to set up a DNS server here for a lab environment.
>>
>> - hijacking a TLD (linux.com let's say, as an example)
>> - trying to point several Linux boxen in a sandbox with no internet connectivity
>>
>> So, here's a copy of my tinydns data file:
>>
>> .linux.com:172.18.109.125:a:259200
>> =server1.linux.com:14.17.108.241:86400
>> =server2.linux.com:14.17.108.242:86400
>>
> [...]
>>
>> Inside of /etc/dnscache/root/servers/linux.com I have "127.0.0.1" so
>> that the server knows to query the tinydns daemon running.
>> Unfortunately, however, a "dig @<ipAddr> server1.linux.com" doesn't
>> seem to work.
>>
>>
>
> What do you mean with "doesn't seem to work"? Timeout? Wrong answer?
>

Well, tinydns must be bound to a different address than dnscache.

If I do a dig @<tinydns ip address> server1.linux.com it responds with
the correct address.

However, if I put the dnscache IP address in my /etc/resolv.conf,
resolution to *any* IP address (including server1.linux.com and
server2.linux.com) fails.

Thoughts?
-j


keith at dartworks

Nov 8, 2009, 9:50 PM

Post #5 of 6 (459 views)
Permalink
Re: help with tinydns setup [In reply to]

=== On Sun, 11/08, James wrote: ===
> Thoughts?
> -
===

What I have done is bind named to a dummy interface, which serves a
psuedo TLD, and use dnsmasq for the local DNS.


2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
inet 10.111.1.130/24 brd 10.111.1.255 scope global eth0
3: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state
inet 172.17.211.1/24 brd 172.17.211.255 scope global dummy0

Then you have different interfaces to bind to, and different networks
to route to internally.



-- Keith Dart

--

-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Keith Dart <keith [at] dartworks>
public key: ID: 19017044
<http://www.dartworks.biz/>
=====================================================================


jtp at nc

Nov 9, 2009, 11:07 AM

Post #6 of 6 (462 views)
Permalink
Re: help with tinydns setup [In reply to]

On Mon, Nov 9, 2009 at 12:50 AM, Keith Dart <keith [at] dartworks> wrote:
> === On Sun, 11/08, James wrote: ===
>> Thoughts?
>> -
> ===
>
> What I have done is bind named to a dummy interface, which serves a
> psuedo TLD, and use dnsmasq for the local DNS.
>
>
> 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast
>    inet 10.111.1.130/24 brd 10.111.1.255 scope global eth0
> 3: dummy0: <BROADCAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state
>    inet 172.17.211.1/24 brd 172.17.211.255 scope global dummy0
>
> Then you have different interfaces to bind to, and different networks
> to route to internally.

I'd rather not use named. tinydns seems simpler to set up (despite my
problems) and is theoretically far more secure.

Gentoo user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.