DJBDNS IPv6

2007-08-21 Thread Steve Bertrand
Hi all,

I am doing some serious testing with IPv6, however I can not get the
name resolution side of things on my DJBDNS DNS servers to work as expected.

On my legacy 4.10 box running BIND, I can resolve v6 addresses
inherently even without v6 enabled in the kernel, but on my
pre-production tinydns boxes (6.2, IPv6 kernel), I can't.

I have installed the port, 'sup'd today on:

FreeBSD 6.2-RELEASE-p6 #0: Wed Jul 18 20:31:03 EDT 2007

...and installed it with the v6 patch in the Makefile turned 'on', but I
can not identify any indication that IPv6 is enabled.

What I'd like to know is:

- is there a special way that I need to use tinydns-conf to create a new
'server'

- what should a proper v6 entry look like in the data file

My research has told me that I should have new 'v6' type binaries in the
./bin directory, but I do not see those.

Any help would be greatly appreciated. I'm sorry if this should be
directed to the djbdns list, however, I know I can compile from source
and get it to work, I just want the port to work for future maintenance
purposes.

Regards,

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DJBDNS IPv6

2007-08-21 Thread Steve Bertrand
 - is there a special way that I need to use tinydns-conf to create a new
 'server'
 
 - what should a proper v6 entry look like in the data file
 
 My research has told me that I should have new 'v6' type binaries in the
 ./bin directory, but I do not see those.

To answer my own question, and to ensure quality in the archive, thanks
to this:

http://tomclegg.net/djbdns-ipv6

I managed to solve my own question.

I had to:

# echo WITH_IPV6=yes  /etc/make.conf

...and now I have:

-rwxr-xr-x  1 root  wheel  78 Aug 21 20:58 add-alias6
-rwxr-xr-x  1 root  wheel  77 Aug 21 20:58 add-host6

...which is what I was looking for.

I don't know what ramifications leaving this in the /etc/make.conf file
will have on future ports, so if someone can answer that, it would be great!

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DJBDNS IPv6

2007-08-21 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Steve Bertrand wrote:
 - is there a special way that I need to use tinydns-conf to create a new
 'server'

 - what should a proper v6 entry look like in the data file

 My research has told me that I should have new 'v6' type binaries in the
 ./bin directory, but I do not see those.
 
 To answer my own question, and to ensure quality in the archive, thanks
 to this:
 
 http://tomclegg.net/djbdns-ipv6
 
 I managed to solve my own question.
 
 I had to:
 
 # echo WITH_IPV6=yes  /etc/make.conf
 
 ...and now I have:
 
 -rwxr-xr-x  1 root  wheel  78 Aug 21 20:58 add-alias6
 -rwxr-xr-x  1 root  wheel  77 Aug 21 20:58 add-host6
 
 ...which is what I was looking for.
 
 I don't know what ramifications leaving this in the /etc/make.conf file
 will have on future ports, so if someone can answer that, it would be great!


'WITH_IPV6' inserted into /etc/make.conf in the way you show will
enable IPv6 support in all ports that offer the capability.  It's
the recognised flag for that purpose and documented as such in
/usr/ports/KNOBS.

If you want to limit the effect to a single port, then you can use a
construction like this in /etc/make.conf:

.if ${.CURRDIR:M*/dns/djbdns}
WITH_IPV6=  YES
.fi

Also look at ports-mgmt/portsconf which lets you achieve the same
end but using a different syntax which you may find easier to deal
with.

Cheers,

Matthew

- --
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGy8uE8Mjk52CukIwRCBjiAJ99TyDfVH5H51EfzzRqij+lsMYSKwCdEFKv
u4uIqRePKGmdjMB+CNTnqpc=
=PN1d
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DJBDNS missing from ports?

2007-02-13 Thread Roger Olofsson

RW skrev:

On Sun, 11 Feb 2007 11:43:43 +0100
Roger Olofsson [EMAIL PROTECTED] wrote:


Dear Mailing List,

After a recent buildworld (6.2-STABLE FreeBSD) and portsnap fetch 
portversion reported djbdns as being in need of an upgrade, however 
portupgrade just exits like so:


# portupgrade -Rr djbdns-ipv6
#

ie, nothing happens.

A quick locate djbdns | grep ports gave the results that it might be
on the move from ports/dns to ports/net but there are no files for it
in net and the one in dns looks to be the one I have installed.


pkg_info -o *djbdns* 


will tell you the full package name and origin

However a similar thing recently happened to me, after the move of
portupgrade to a new category. I tried to run portupgrade on a port
and nothing happened. I'm not sure why it worked, because I didn't get
Command not found, but typing rehash fixed it.  


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]



Hello,

I am sorry, below happens:

pkg_info -o *djbdns*
pkg_info: No match.

portversion -l 
djbdns-ipv6 

I am having problems with ports and specifically djbdns and php5-mysql 
after a buildworld and then a portsnap fetch/update. I have tried 
portmanager and more portsnaps but these two remain stubborn.


Rehash has been done.

Thanks for your input!

/Roger
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DJBDNS missing from ports?

2007-02-12 Thread RW
On Sun, 11 Feb 2007 11:43:43 +0100
Roger Olofsson [EMAIL PROTECTED] wrote:

 Dear Mailing List,
 
 After a recent buildworld (6.2-STABLE FreeBSD) and portsnap fetch 
 portversion reported djbdns as being in need of an upgrade, however 
 portupgrade just exits like so:
 
 # portupgrade -Rr djbdns-ipv6
 #
 
 ie, nothing happens.
 
 A quick locate djbdns | grep ports gave the results that it might be
 on the move from ports/dns to ports/net but there are no files for it
 in net and the one in dns looks to be the one I have installed.

pkg_info -o *djbdns* 

will tell you the full package name and origin

However a similar thing recently happened to me, after the move of
portupgrade to a new category. I tried to run portupgrade on a port
and nothing happened. I'm not sure why it worked, because I didn't get
Command not found, but typing rehash fixed it.  

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


DJBDNS missing from ports?

2007-02-11 Thread Roger Olofsson

Dear Mailing List,

After a recent buildworld (6.2-STABLE FreeBSD) and portsnap fetch 
portversion reported djbdns as being in need of an upgrade, however 
portupgrade just exits like so:


# portupgrade -Rr djbdns-ipv6
#

ie, nothing happens.

A quick locate djbdns | grep ports gave the results that it might be on 
the move from ports/dns to ports/net but there are no files for it in 
net and the one in dns looks to be the one I have installed.


Then I fired up www.freebsd.org and did a port search for it and it's 
not there at all? Has it been removed from the ports tree?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: DJBDNS missing from ports?

2007-02-11 Thread Roger Olofsson
Sorry, it's found in the search at freebsd.org, don't know why it show 
up at first. However, portupgrade is treating it as if it's not there. 
I'll try another portsnap fetch.


Roger Olofsson skrev:

Dear Mailing List,

After a recent buildworld (6.2-STABLE FreeBSD) and portsnap fetch 
portversion reported djbdns as being in need of an upgrade, however 
portupgrade just exits like so:


# portupgrade -Rr djbdns-ipv6
#

ie, nothing happens.

A quick locate djbdns | grep ports gave the results that it might be on 
the move from ports/dns to ports/net but there are no files for it in 
net and the one in dns looks to be the one I have installed.


Then I fired up www.freebsd.org and did a port search for it and it's 
not there at all? Has it been removed from the ports tree?




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: daemontools - djbdns

2006-02-15 Thread Yance Kowara
- Original Message - 
From: RW [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org; Cristian Mijea
[EMAIL PROTECTED]
Sent: Sunday, February 12, 2006 1:31 AM
Subject: Re: daemontools - djbdns


 On Thursday 09 February 2006 18:56, Cristian Mijea
wrote:
 Ok. trying to follow Matt Simenson's DJBDNS on
FreeBSD how-to from here:

http://matt.simerson.net/computing/dns/djbdns-freebsd.shtml
 Now it writes that I must get the start up script
from here:

http://matt.simerson.net/computing/mail/toaster/services.txt
 All OK, just that the .txt file is missing. Can
anyone please email it to
 me?

 That how-to is pretty-old, there is a local rc.d
script now.

 You just need turn it on  in /etc/rc.conf

 svscan_enable=YES

 and optionally set svscan_servicedir if you don't
want to use 
 /var/service.

 Some of the how-tos for DJBDNS  use some really odd
paths. It doesn't 
 really
 matter where the service directory goes, since it
should only contain 
 links,
 but some people have the real dnscache directory
under /etc which is a bad
 place to put it under FreeBSD.


Hi RW,
Why is it bad to put it under /etc ... is this
specific for FreeBSD or any 
Unix OS?

Where is the proper place?

Kind regards,

Yance Kowara 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: daemontools - djbdns

2006-02-15 Thread DAve

Yance Kowara wrote:
- Original Message - 
From: RW [EMAIL PROTECTED]

To: freebsd-questions@freebsd.org; Cristian Mijea
[EMAIL PROTECTED]
Sent: Sunday, February 12, 2006 1:31 AM
Subject: Re: daemontools - djbdns




On Thursday 09 February 2006 18:56, Cristian Mijea


wrote:


Ok. trying to follow Matt Simenson's DJBDNS on


FreeBSD how-to from here:

http://matt.simerson.net/computing/dns/djbdns-freebsd.shtml


Now it writes that I must get the start up script


from here:

http://matt.simerson.net/computing/mail/toaster/services.txt


All OK, just that the .txt file is missing. Can


anyone please email it to


me?


That how-to is pretty-old, there is a local rc.d


script now.


You just need turn it on  in /etc/rc.conf

   svscan_enable=YES

and optionally set svscan_servicedir if you don't


want to use 


/var/service.

Some of the how-tos for DJBDNS  use some really odd


paths. It doesn't 


really
matter where the service directory goes, since it


should only contain 


links,
but some people have the real dnscache directory


under /etc which is a bad


place to put it under FreeBSD.




Hi RW,
Why is it bad to put it under /etc ... is this
specific for FreeBSD or any 
Unix OS?


Where is the proper place?

Kind regards,

Yance Kowara 


Try Matt's new version of the HowTo, it is at
http://www.tnpi.biz/internet/dns/djbdns-freebsd.shtml
and the links work fine. He moved everything to his new domain some time 
ago.


I've installed daemontools on lots of servers, many heavily loaded, 
running FreeBSD / NetBSD / Solaris. I have always followed Dan's 
suggested install paths and I have never had a single issue. I don't 
even use the start script in /usr/local/etc/rc.d, I still edit 
/etc/rc.local. Mainly because I have three OSs, and three versions of 
FreeBSD, two of which handle startup differently (4.10 and 5.4).


While I agree it may be bad form to use Dan's paths. I do not believe 
it is bad in general, as in harmful. So while Matt's HowTo may not be in 
sync with current FreeBSD thinking it is a well documented, working 
procedure. A new user will have a successful install following it.


DAve


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: daemontools - djbdns

2006-02-11 Thread RW
On Thursday 09 February 2006 18:56, Cristian Mijea wrote:
 Ok. trying to follow Matt Simenson's DJBDNS on FreeBSD how-to from here:
 http://matt.simerson.net/computing/dns/djbdns-freebsd.shtml
 Now it writes that I must get the start up script from here:
 http://matt.simerson.net/computing/mail/toaster/services.txt
 All OK, just that the .txt file is missing. Can anyone please email it to
 me?

That how-to is pretty-old, there is a local rc.d script now. 

You just need turn it on  in /etc/rc.conf

 svscan_enable=YES 

and optionally set svscan_servicedir if you don't want to use /var/service. 

Some of the how-tos for DJBDNS  use some really odd paths. It doesn't really 
matter where the service directory goes, since it should only contain links, 
but some people have the real dnscache directory under /etc which is a bad 
place to put it under FreeBSD. 



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


daemontools - djbdns

2006-02-09 Thread Cristian Mijea
Ok. trying to follow Matt Simenson's DJBDNS on FreeBSD how-to from here:
http://matt.simerson.net/computing/dns/djbdns-freebsd.shtml
Now it writes that I must get the start up script from here:
http://matt.simerson.net/computing/mail/toaster/services.txt
All OK, just that the .txt file is missing. Can anyone please email it to
me?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: daemontools - djbdns

2006-02-09 Thread Rafi Jacoby


On Feb 9, 2006, at 10:56 AM, Cristian Mijea wrote:

Ok. trying to follow Matt Simenson's DJBDNS on FreeBSD how-to from  
here:

http://matt.simerson.net/computing/dns/djbdns-freebsd.shtml
Now it writes that I must get the start up script from here:
http://matt.simerson.net/computing/mail/toaster/services.txt
All OK, just that the .txt file is missing. Can anyone please email  
it to

me?


All Matt's stuff has moved to his tnpi.biz domain.

http://www.tnpi.biz/internet/dns/djbdns-freebsd.shtml

and

http://www.tnpi.biz/internet/mail/toaster/start/services.txt

-Rafi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Going from bind9 to djbdns

2005-12-29 Thread Kristian Vaaf

Hello!

My friend, who hosts most of my stuff, is using djbdns. Probably for security 
and simplicity.

Anyway I thought I'd do the same. But I'm having serious difficulties finding a 
user-friendly howto.

I've basically picked stuff from here and there and put them together.

Would this be what I need to set up a djbdns equivalent to 
http://www.home.no/hedhnta/namedb?

--

Create users:

tinydns
axfrdns
dnslog
dnscache

--

Run these commands:

mkdir /etc/tinydns
mkdir /etc/axfrdns
mkdir /etc/dnslog
mkdir /etc/dnscache
mkdir /etc/dnscache/root
mkdir /etc/dnscache/root/ip
mkdir /etc/dnscache/root/servers

Should the above directories be set as home for the users above?

--

Continue with:

dnscache-conf dnscache dnslog /etc/dnscache 127.0.0.1

touch /etc/dnscache/root/ip/192.168.187.1
touch /etc/dnscache/root/ip/192.168.187.2

echo 127.0.0.1  /etc/dnscache/root/servers/mydomain.lan
echo 127.0.0.1  /etc/dnscache/root/servers/187.168.192.in-addr.arpa

tinydns-conf tinydns dnslog /etc/tinydns 213.187.181.70

axfrdns-conf axfrdns dnslog /etc/axfrdns /etc/tinydns 213.187.181.70

ln -s /etc/dnscache /service
ln -s /etc/tinydns /service

svc -t /service/dnscache

--

Would djbdns now have created this file for me?

If so, can I skip this? If not, I take it I should:

vim /etc/tinydns/data

And type in:

.mydomain.com::ns1.mydomain.com
@mydomain.com::mail.mydomain.com
=myhost.mydomain.com:213.181.112.43
+mail.mydomain.com:213.181.112.43
+www.mydomain.com:213.181.112.43

Then:

cd /etc/tinydns
make

--

To allow my 213.181.102.23 to be ns2.mydomain.com, I must do this?

vi /etc/axfrdns/tcp

And then type in:

213.181.102.23:allow,AXFR=*

I have a lot of domains. I want the ns2 to handle them all.
Is the wildcard * valid, or should I list them all?

Anyway:

cd /etc/axfrdns
make

--

As for my zone files, I take it I could cram all my domains into the data file?
How would that look?

--

That's it.

I'm hoping that once everything is up, my configuration will be stored in files
that I can back up and easily redeploy incase of an accident (similar to my 
current
namedb setup I posted above).

Thank you all, and happy new year!
Kristian Vaaf


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Going from bind9 to djbdns

2005-12-29 Thread Kirk Strauser
On Thursday 29 December 2005 10:55, Kristian Vaaf wrote:
 Hello!

 My friend, who hosts most of my stuff, is using djbdns. Probably for
 security and simplicity.

1) BIND 9 is a whole different animal from BIND =8, with many fewer 
vulnerabilities.

2) In this case, simplicity means staggering lack of functionality - no 
IXFR, dynamic DNS, etc.

 Anyway I thought I'd do the same. But I'm having serious difficulties
 finding a user-friendly howto.

DJB hates users.  They do pesky things like find vulnerabilities in his code 
and make him work to find a reason to blame them on something else.
-- 
Kirk Strauser


pgpVXH011ahj1.pgp
Description: PGP signature


Re: Going from bind9 to djbdns

2005-12-29 Thread DAve

Kristian Vaaf wrote:

Hello!

My friend, who hosts most of my stuff, is using djbdns. Probably for security 
and simplicity.

Anyway I thought I'd do the same. But I'm having serious difficulties finding a 
user-friendly howto.

I've basically picked stuff from here and there and put them together.

Would this be what I need to set up a djbdns equivalent to 
http://www.home.no/hedhnta/namedb?


Without reading through what you have (sorry, my hands are really full 
right now) I would suggest you check into http://lifewithdjbdns.org/ and 
DJB's own docs.


The biggest issue you will face is, it is not as complicated as it 
seems. Follow the directions, join the list for djbdns. When posting to 
the list, outline what you are trying to do, what you have already 
tried, what sources of information you based your configuration on.


Hope that helps.

DAve



--

Create users:

tinydns
axfrdns
dnslog
dnscache

--

Run these commands:

mkdir /etc/tinydns
mkdir /etc/axfrdns
mkdir /etc/dnslog
mkdir /etc/dnscache
mkdir /etc/dnscache/root
mkdir /etc/dnscache/root/ip
mkdir /etc/dnscache/root/servers

Should the above directories be set as home for the users above?

--

Continue with:

dnscache-conf dnscache dnslog /etc/dnscache 127.0.0.1

touch /etc/dnscache/root/ip/192.168.187.1
touch /etc/dnscache/root/ip/192.168.187.2

echo 127.0.0.1  /etc/dnscache/root/servers/mydomain.lan
echo 127.0.0.1  /etc/dnscache/root/servers/187.168.192.in-addr.arpa

tinydns-conf tinydns dnslog /etc/tinydns 213.187.181.70

axfrdns-conf axfrdns dnslog /etc/axfrdns /etc/tinydns 213.187.181.70

ln -s /etc/dnscache /service
ln -s /etc/tinydns /service

svc -t /service/dnscache

--

Would djbdns now have created this file for me?

If so, can I skip this? If not, I take it I should:

vim /etc/tinydns/data

And type in:

.mydomain.com::ns1.mydomain.com
@mydomain.com::mail.mydomain.com
=myhost.mydomain.com:213.181.112.43
+mail.mydomain.com:213.181.112.43
+www.mydomain.com:213.181.112.43

Then:

cd /etc/tinydns
make

--

To allow my 213.181.102.23 to be ns2.mydomain.com, I must do this?

vi /etc/axfrdns/tcp

And then type in:

213.181.102.23:allow,AXFR=*

I have a lot of domains. I want the ns2 to handle them all.
Is the wildcard * valid, or should I list them all?

Anyway:

cd /etc/axfrdns
make

--

As for my zone files, I take it I could cram all my domains into the data file?
How would that look?

--

That's it.

I'm hoping that once everything is up, my configuration will be stored in files
that I can back up and easily redeploy incase of an accident (similar to my 
current
namedb setup I posted above).

Thank you all, and happy new year!
Kristian Vaaf


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: djbdns question

2005-02-24 Thread J65nko BSD
On Wed, 23 Feb 2005 14:45:16 -0600, Darryl Hoar [EMAIL PROTECTED] wrote:
 Greetings,
 I setup djbdns on a freebsd server attached to my internal network.
 It answers for the local machine on the domain for my internal while
 forwarding all others to our ISP for resolution.
 
 I set this up a 2 years ago and haven't needed to do a thing other
 than to add/remove machines.
 
 Well, now I need to change the domain name from osborneindustries.com
 to osborneinternal.com.  Unfortunately, I haven't found any documentation
 that takes you through the changes to convert and already running
 tinydns/dnscache
 setup from one domain name to a different one.
 
 Anybody have any pointers here ?

Change directory to the tinydns data directory (cd
/service/tinydns/root) , edit your tinydns data file. Editing can be
done in one sweep with

# mv data data.old
# sed -e 's/osborneindustries.com/osborneinternal.com/g' data.old data

Now run make to generate a new data.cdb file from the edited
data file. Tinydns will notice the change, no need to start/stop or
give a -HUP to tinydns.


The only other thing left is to tell dnscache about the change.

# cd /service/dnscache/root/servers
You will see a file called osborneindustries.com The contents of
that file is the IP address of your tinydns server. Rename this file
with mv to osborneinternal.com


=Adriaan=
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: djbdns question

2005-02-24 Thread J65nko BSD
On Thu, 24 Feb 2005 22:18:01 +0100, J65nko BSD [EMAIL PROTECTED] wrote:
 On Wed, 23 Feb 2005 14:45:16 -0600, Darryl Hoar [EMAIL PROTECTED] wrote:
  Greetings,
  I setup djbdns on a freebsd server attached to my internal network.
  It answers for the local machine on the domain for my internal while
  forwarding all others to our ISP for resolution.
 
  I set this up a 2 years ago and haven't needed to do a thing other
  than to add/remove machines.
 
  Well, now I need to change the domain name from osborneindustries.com
  to osborneinternal.com.  Unfortunately, I haven't found any documentation
  that takes you through the changes to convert and already running
  tinydns/dnscache
  setup from one domain name to a different one.
 
  Anybody have any pointers here ?
 
 Change directory to the tinydns data directory (cd
 /service/tinydns/root) , edit your tinydns data file. Editing can be
 done in one sweep with
 
 # mv data data.old
 # sed -e 's/osborneindustries.com/osborneinternal.com/g' data.old data
 
 Now run make to generate a new data.cdb file from the edited
 data file. Tinydns will notice the change, no need to start/stop or
 give a -HUP to tinydns.
 
 The only other thing left is to tell dnscache about the change.
 
 # cd /service/dnscache/root/servers
 You will see a file called osborneindustries.com The contents of
 that file is the IP address of your tinydns server. Rename this file
 with mv to osborneinternal.com
 
I forget to mention that a restart of dnscache is needed

# svc -t /service/dnscache

At http://www.freebsdforums.org/forums/showthread.php?s=threadid=25244
you can find a comfortable dnscachectl script to start/stop and many
other things with dnscache.

=Adriaan=
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: djbdns question

2005-02-24 Thread michael Christie

Have a look at http://www.vegadns.org/   I have this set up on my dns
server . it makes djddns a snap



On Thu, 2005-02-24 at 22:18 +0100, J65nko BSD wrote:

 On Wed, 23 Feb 2005 14:45:16 -0600, Darryl Hoar [EMAIL PROTECTED] wrote:
  Greetings,
  I setup djbdns on a freebsd server attached to my internal network.
  It answers for the local machine on the domain for my internal while
  forwarding all others to our ISP for resolution.
  
  I set this up a 2 years ago and haven't needed to do a thing other
  than to add/remove machines.
  
  Well, now I need to change the domain name from osborneindustries.com
  to osborneinternal.com.  Unfortunately, I haven't found any documentation
  that takes you through the changes to convert and already running
  tinydns/dnscache
  setup from one domain name to a different one.
  
  Anybody have any pointers here ?
 
 Change directory to the tinydns data directory (cd
 /service/tinydns/root) , edit your tinydns data file. Editing can be
 done in one sweep with
 
 # mv data data.old
 # sed -e 's/osborneindustries.com/osborneinternal.com/g' data.old data
 
 Now run make to generate a new data.cdb file from the edited
 data file. Tinydns will notice the change, no need to start/stop or
 give a -HUP to tinydns.
 
 
 The only other thing left is to tell dnscache about the change.
 
 # cd /service/dnscache/root/servers
 You will see a file called osborneindustries.com The contents of
 that file is the IP address of your tinydns server. Rename this file
 with mv to osborneinternal.com
 
 
 =Adriaan=
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 





Michael Christie
[EMAIL PROTECTED]
:)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


djbdns question

2005-02-23 Thread Darryl Hoar
Greetings,
I setup djbdns on a freebsd server attached to my internal network.
It answers for the local machine on the domain for my internal while
forwarding all others to our ISP for resolution.

I set this up a 2 years ago and haven't needed to do a thing other
than to add/remove machines.

Well, now I need to change the domain name from osborneindustries.com
to osborneinternal.com.  Unfortunately, I haven't found any documentation
that takes you through the changes to convert and already running
tinydns/dnscache
setup from one domain name to a different one.

Anybody have any pointers here ?

thanks,
Darryl


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems with djbdns

2004-03-24 Thread Denis R.
What does /etc/hosts show?
/etc/resolv.conf?
/etc/dnscache/env/IP (or whatever directory you're using)
/etc/tinydns/env/IP ( --  -- )
/etc/dnscache/env/ROOT ( --  -- )
/etc/tinydns/env/ROOT ( --  -- )

ls -la /etc/dnscache/root/ip/

and finally:
ifconfig -A
Do you use 2 assigned IP's to one NIC?

Regards!
Denis


skip
Im runing djbdns on some boxes here at home. I haveing two major problems,
The first one is that for some reason the DNS server won't answer queryies.
/skip
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems with djbdns

2004-03-23 Thread User Thrawn
Hi,

Im runing djbdns on some boxes here at home. I haveing two major problems,
The first one is that for some reason the DNS server won't answer queryies.
Even thought that I have setup it right (to my knowlage), 
I might explain how many machines, I have.

On thing that I should metion is that my domain is birch.se, and Its only an
internal domain name.

I have my router computer, its 192.168.10.10. Then I have another one  
192.168.10.1. And My workstation that is 192.168.10.201.

thrawn.birch.se is .10.201, .10.10 is setiathome.birch.se and the last one is
dasboot.birch.se

It works fine on .10.201  .10.1. But for some reason it stopped working. And
I desided to tar down the directories in /var, and send it to .10.10.

The directories are /var/{tinydns,dnscache,dnscachex}. I tared down the 
directories and send them to .10.10.

The only thing that I changed was the ip address in /var/dnscachex/env/IP,
from 192.168.10.1 to 192.168.10.10. To get the correct IP address to listenoon 
setiathome.birch.se.

The directories on /var/dns*/root/ip/,
have the to following files, 127.0.0.1 and 192.168.10 and it works fine on the
two other boxes. The directory /var/dns*/root/servers/ have three files.
The names for them are 10.168.192.in-addr.arpa,@ and birch.se, the first and 
the last file have 127.53.0.1 as enteries. The @-file have some IP addresses.

When I start them with svc -u /var/service/* it starts fine. Running in the bg.
I can also se them with netstat -nl -f inet -t {tcp,udp} But nothing happens,
if i try to telnet to 192.168.10.10/127.0.0.1 using port 53. nslookup, dnsip
and dnsname can't resolv internal dns names/IPs.

I don't se any reason why I don't can copy the directoryies from one box to
another box. And then simply change the IP address.

The other problem is that when i share my data.old file, located in: 
/var/tinydns/root/data. Clients using axfr-get, can fetch the file fine. axfrdns
is running on port 5300 btw. The I run make in /var/tinydns/root on the slave,
boxes. It works fine but then after restaring djbdns. Then I get the smilar
problem that I have above, It can resolv external domains and hosts, but not 
internals like 192.168.x.y and dasboot.birch.se using dnsname/dnsip/nslookup.

This is how good I can describe my problem. I have google alot and not found
anything that hade help me there. I have also runned some step by step guides.
The problem where that I did not get it to work with www.djbdnsrock.org, even
thought I did it more the one time. (First i tryied to start from scratch, but
it in the end I was forced to copy the setup from setiathome to thrawn to get
it up and running) My dns db-file does not look the same after transfering it
via axfr-get. I might have something to do with it. Because when i copy it by
my self via scp, it works...

I have checked host.conf and there dns stands before host(s). I have search in
my /etc/resolv.conf file also. I have attatched the db-file.
.birch.se:127.53.0.1:a:2592
.10.168.192.in-addr.arpa:127.53.0.1:a:2592

#Hosts

=dasboot.birch.se:192.168.10.1:864
=setiathome.birch.se:192.168.10.10:864
=hphora.birch.se:192.168.10.111:864
=thrawn.birch.se:192.168.10.201:864
=maria.birch.se:192.168.10.202:864
=anders.birch.se:192.168.10.203:864
=ttd.birch.se:192.168.10.204:864

#MX records

@dasboot.birch.se:192.168.10.1:a:10:86400
@setiathome.birch.se:192.168.10.10:a::86400
@thrawn.birch.se:192.168.10.201:a::86400

#Alias

+pappa.birch.se:192.168.10.203:864

#DNS servers

.ns.birch.se:192.168.10.10:a:2592
.ns2.birch.se:192.168.10.1:a:2592
.ns3.birch.se:192.168.10.201:a:2592

=ns.birch.se:192.168.10.10:864
=ns2.birch.se:192.168.10.1:864
=ns3.birch.se:192.168.10.201:864

#DNS root servers:

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: djbdns

2003-12-31 Thread Peter Risdon
Ion-Mihai Tetcu wrote:

On Tue, 30 Dec 2003 10:53:20 +
Peter Risdon [EMAIL PROTECTED] wrote:
 

Ion-Mihai Tetcu wrote:

   

Take a look at /usr/local/etc/rc.d/svscan.sh.sample 

1. SVDIR=/var/service/ - so svscan will look at /var/service and not
/service; either do:
a) what is suggested and use /var/services (e.g. ln -s /etc/dnscache
/var/service) or 
b) change SVDIR=/var/service/ to SVDIR=/service/

I would use a); also note that creating the log file in /etc/dnscache
is IMHO a bad idea.
 

I'm not disagreeing, but the original post complained of something
being wrong in some documentation.
   

Yes, the idea of logging to / is bad at least for 2 reasons: filling up
/, which is usually small and, in case of a crash, increasing the
chances to have a trashed /
 

In passing, I don't understand why any dns data are stored in 
subdirectories of /etc and not /var. But while this is important for the 
log files, the service directory just contains soft links, so no issues 
of disk space arise from a location in /. It seems to be more a matter 
of how you read hier(7).

Most reference and tutorial pages for 
djbdns and other djb stuff like qmail assume a /service directory, 
rather than /var/service.
   

I've always loved the explanation Portability. With /service, your
program works the same way on every system: Linux, BSD, Solaris, etc.
(http://cr.yp.to/daemontools/faq/create.html#run); using this logic
every program should install in his own directory in /
 

Not entirely: daemontools has a broad application to other services that 
most programs lack. As a, sort of, replacement for inet.d it has a 
different status to, say, mozilla. One /service directory allows more 
than one daemon to run. I'm all for standardisation of file locations 
across unixen. There's just the small matter of agreeing what those 
standard locations should be.

Using /var/service does seem more logical, but 
can be a source of confusion, especially if people are copying and 
pasting commands from online instructions, something the various 
references often suggest.
   

Perhaps I should suggest to the maintainer adding a pkg-message saying
that, by default, we're using /var/services ?
 

Good idea, though there is already a mention of this issue in 
/usr/local/etc/rc.d/svscan.sh.sample

I think the djbdns and the qmail ports should create the service 
directory if it's not already there (in / or /var, whatever, so long as 
both ports agree) and the symlinks within it, with configure options for 
selecting a different location. That would help avoid a lot of confusion 
and mean the ports installed services that were actually capable of 
running after the make install without an unusual amount of tweaking, 
but I'll take this to the relevant list.

PWR

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: djbdns

2003-12-30 Thread Peter Risdon
Ion-Mihai Tetcu wrote:

Take a look at /usr/local/etc/rc.d/svscan.sh.sample 

1. SVDIR=/var/service/ - so svscan will look at /var/service and not
/service; either do:
a) what is suggested and use /var/services (e.g. ln -s /etc/dnscache
/var/service) or 
b) change SVDIR=/var/service/ to SVDIR=/service/

I would use a); also note that creating the log file in /etc/dnscache is
IMHO a bad idea.
 

I'm not disagreeing, but the original post complained of something being 
wrong in some documentation. Most reference and tutorial pages for 
djbdns and other djb stuff like qmail assume a /service directory, 
rather than /var/service. Using /var/service does seem more logical, but 
can be a source of confusion, especially if people are copying and 
pasting commands from online instructions, something the various 
references often suggest.

2. 
# cp /usr/local/etc/rc.d/svscan.sh.sample /usr/local/etc/rc.d/svscan.sh
# /usr/local/etc/rc.d/svscan.sh start
# svstatus /var/services/dnscache
# svstatus /var/services/dnscache/log
# dnsip www.freebsd.org
 

Shouldn't it be:

# svstat /var/service/dnscache

etc?

PWR

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: djbdns

2003-12-30 Thread Ion-Mihai Tetcu
On Tue, 30 Dec 2003 10:53:20 +
Peter Risdon [EMAIL PROTECTED] wrote:

 Ion-Mihai Tetcu wrote:
 
 Take a look at /usr/local/etc/rc.d/svscan.sh.sample 
 
 1. SVDIR=/var/service/ - so svscan will look at /var/service and not
 /service; either do:
 a) what is suggested and use /var/services (e.g. ln -s /etc/dnscache
 /var/service) or 
 b) change SVDIR=/var/service/ to SVDIR=/service/
 
 I would use a); also note that creating the log file in /etc/dnscache
 is IMHO a bad idea.
   
 
 I'm not disagreeing, but the original post complained of something
 being wrong in some documentation.

Yes, the idea of logging to / is bad at least for 2 reasons: filling up
/, which is usually small and, in case of a crash, increasing the
chances to have a trashed /

 Most reference and tutorial pages for 
 djbdns and other djb stuff like qmail assume a /service directory, 
 rather than /var/service.

I've always loved the explanation Portability. With /service, your
program works the same way on every system: Linux, BSD, Solaris, etc.
(http://cr.yp.to/daemontools/faq/create.html#run); using this logic
every program should install in his own directory in /

 Using /var/service does seem more logical, but 
 can be a source of confusion, especially if people are copying and 
 pasting commands from online instructions, something the various 
 references often suggest.

Perhaps I should suggest to the maintainer adding a pkg-message saying
that, by default, we're using /var/services ?
 
 2. 
 # cp /usr/local/etc/rc.d/svscan.sh.sample
 /usr/local/etc/rc.d/svscan.sh# /usr/local/etc/rc.d/svscan.sh start
 # svstatus /var/services/dnscache
 # svstatus /var/services/dnscache/log
 # dnsip www.freebsd.org
   
 
 Shouldn't it be:
 
 # svstat /var/service/dnscache

Of course.


-- 
IOnut
Unregistered ;) FreeBSD user
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


djbdns

2003-12-29 Thread Vahric MUHTARYAN
Hi Everybody, 

Does any body use djbdns .. I can't configure externel cache option
of it on FreeBSD. Something is difference in Doc.  
Can anybosy help me ?! 


Vahric  

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: djbdns

2003-12-29 Thread Ion-Mihai Tetcu
On Tue, 30 Dec 2003 03:24:49 +0200
Vahric MUHTARYAN [EMAIL PROTECTED] wrote:

   Hi Everybody, 
 
   Does any body use djbdns .. I can't configure externel cache option
 of it on FreeBSD. Something is difference in Doc.  
   Can anybosy help me ?! 

Well, I've just set up one a few minutes ago, so ask your questions.


-- 
IOnut
Unregistered ;) FreeBSD user
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: djbdns

2003-12-29 Thread Vahric MUHTARYAN
I'm using FreeBSD 4.9 

I red this link http://cr.yp.to/djbdns/run-cache-x.html

I created Gdnscache and Gdnslog users 


dnscache-conf Gdnscache Gdnslog /etc/dnscache 192.168.0.1 

( Which mydns is working same with same ip ) 


ln -s /etc/dnscache /service

touch /etc/dnscache/root/ip/192.168.0

nameserver 192.168.0.1

But it's not working ... 

I cant find /service/dnscache because with tihs configuration no dnscahce
linked to service directory 

I tried this configuration with 127.0.0.1 but it's not working .. 

I'm using MyDNS but it's not support -Non Auth. Answer  But I need
recursive query some times 

:( 

Thanks 
Vahric 



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ion-Mihai Tetcu
Sent: Tuesday, December 30, 2003 3:50 AM
To: Vahric MUHTARYAN
Cc: [EMAIL PROTECTED]
Subject: Re: djbdns

On Tue, 30 Dec 2003 03:24:49 +0200
Vahric MUHTARYAN [EMAIL PROTECTED] wrote:

   Hi Everybody, 
 
   Does any body use djbdns .. I can't configure externel cache option
 of it on FreeBSD. Something is difference in Doc.  
   Can anybosy help me ?! 

Well, I've just set up one a few minutes ago, so ask your questions.


-- 
IOnut
Unregistered ;) FreeBSD user
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: djbdns

2003-12-29 Thread Ion-Mihai Tetcu
On Tue, 30 Dec 2003 04:03:35 +0200
Vahric MUHTARYAN [EMAIL PROTECTED] wrote:

 I'm using FreeBSD 4.9 
 
 I red this link http://cr.yp.to/djbdns/run-cache-x.html

ok

 I created Gdnscache and Gdnslog users 

ok
 
 dnscache-conf Gdnscache Gdnslog /etc/dnscache 192.168.0.1 
 
 ( Which mydns is working same with same ip ) 

I don't know if I understand you correctly here; This means that
dnscache will listen on ip 192.168.0.1 port 53 both udp and tcp.
 
 ln -s /etc/dnscache /service

ok ... or not, see below.
 
 touch /etc/dnscache/root/ip/192.168.0

so it will answer to queries from 192.168.0.1/24
 
 nameserver 192.168.0.1

in /etc/resolv.conf
Just checking: 192.168.0.1 is on the machine you are running dnscache,
right ?

 But it's not working ... 
 
 I cant find /service/dnscache because with tihs configuration no
 dnscahce linked to service directory 

?
Take a look at /usr/local/etc/rc.d/svscan.sh.sample 

1. SVDIR=/var/service/ - so svscan will look at /var/service and not
/service; either do:
a) what is suggested and use /var/services (e.g. ln -s /etc/dnscache
/var/service) or 
b) change SVDIR=/var/service/ to SVDIR=/service/

I would use a); also note that creating the log file in /etc/dnscache is
IMHO a bad idea.


2. 
# cp /usr/local/etc/rc.d/svscan.sh.sample /usr/local/etc/rc.d/svscan.sh
# /usr/local/etc/rc.d/svscan.sh start
# svstatus /var/services/dnscache
# svstatus /var/services/dnscache/log
# dnsip www.freebsd.org

 I tried this configuration with 127.0.0.1 but it's not working .. 

If you put 127.0.0.1 in /etc/resolv.conf with this configuration it
won't work.
 
 I'm using MyDNS but it's not support -Non Auth. Answer  But I need
 recursive query some times 

Please elaborate, I do not understand.


-- 
IOnut
Unregistered ;) FreeBSD user
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


djbdns not listening on port 53

2003-06-20 Thread Guilherme Oliveira
 Hi !

My tinydns (192.168.1.2) is running inside a DMZ..
Natd forward the port 53 to 192.168.1.2 that (for example) is working very well
with apache.

netstat -la shows that tinydns is there but not listening on any port !

I've searched internet but didn't found anything ..
Hints ?



--
mailto:[EMAIL PROTECTED]
All bits used in this post are recycled !
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: djbdns not listening on port 53

2003-06-20 Thread Jez Hancock
On Fri, Jun 20, 2003 at 10:13:23AM +, Guilherme Oliveira wrote:
  Hi !
 
 My tinydns (192.168.1.2) is running inside a DMZ..
 Natd forward the port 53 to 192.168.1.2 that (for example) is working very well
 with apache.
 
 netstat -la shows that tinydns is there but not listening on any port !
 
 I've searched internet but didn't found anything ..
 Hints ?
How did you set up tinydns?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]