*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
iam new too openbsd 3.6 and i want to setup a dns server of my own,
can any one teach me the right setup..... what configuration files can i edit and the right location will i put the files?? thks
Distribution: FreeBSD, NetBSD, OpenBSD (all latest version, freebsd from 4.6)
Posts: 5
Rep:
If you read the manpage of named then you can see what the default configuration file is.
And so far I know has FreeBSD the whole DNS server documented in it's handbook. You can use this documentation, but you'll have to keep in mind that some things could be different (I don't think it is much, but it's possible)
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
OpenBSD uses a heavily patched distribution of BIND. It's chroot'd to /var/named by default. Nothing else is really specific to OpenBSD, so it's just a matter of learning BIND (which is definintely not trivial). Search Google for BIND tutorials, since it's way too complicated to explain neatly in a single post.
I combined this howto with my Red Hat Linux adminstration book. I'm sure that howto will help you. Just be patient. I suggest that you print this whole howto and read it first. Learning is not always as easy as 1-2-3 and A-B-C.
The last link can easily be searched via google with "DNS HOWTO" key words.
If you're using pf, remember to open port 53 UDP if you intend to serve DNS (either as a SOA or as a resolver) for others outside your network; if you intend to allow zone transfers, you'll likely need to open 53 TCP, too.
Aside from that, getting DNS to run as a resolver is cake . Just change the NO to "" in /etc/rc.conf, and bind will start automatically on reboot. If you want to be a SOA for domain(s), the links the prior user recommended are great places to start IMHO.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
You need to open up 53/TCP regardless of whether you're going to offer zone transfers. It's an extremely common misconception about DNS that only zone transfers use TCP. In fact, the DNS protocol will fall back to TCP if the information being transferred is too large for a single UDP datagram.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.