LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 06-24-2011, 04:30 PM   #1
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Rep: Reputation: 32
FreeBSD Bind not working


in the first step on setting up bind you have to run this command in the /etc/namedb directory
Code:
#sh make-localhost
but i get an error
Code:
make-localhost: Can't open make-localhost: No such file or directory
what can be cauing this because i have just installed it freshly (on a vmware machine) could that be the problem if not then what do i need to do to get it to stop doing this and make it do what it's suppossed to

thanks for you help

Last edited by baronobeefdip; 06-24-2011 at 07:05 PM.
 
Old 06-25-2011, 10:09 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Read: http://www.freebsd.org/doc/handbook/network-dns.html
 
Old 06-27-2011, 08:27 PM   #3
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
people keep telling me about the handbook insistently. But i found the answer and it wasn't in the handbook. Turns out that the method i am using is obsolete it no longer exists in the current release of FreeBSD.
 
Old 06-28-2011, 11:45 AM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Hi, I don't recognize you and don't / didn't recall ever referring you to the Handbook for anything. What you were attempting (in the first post) was nonsensical, so I thought it would be prudent to get back to the official docs and revisit any assumptions.

Glad you figured it out.
 
Old 07-03-2011, 10:34 PM   #5
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
yeah that was only the beginning now we are having problems even after hours of research that seems to be getting us no where

here is the /etc/rc.conf file
Code:
moused_enable="YES"
gdm_enable="YES"
gnome_enable="YES"
hostname="baronobeefdip"
networkinterfaces=pcn0
ifconfig_pcn0="inet 192.168.1.53 netmask 255.255.255.0"
named_enable="YES"
this is the /etc/namedb/named.conf file
Code:
options {
         directory        "/etc/namedb/master";
         pid-file         "/var/run/named/pid";
         dump-file        "/var/dump/named_dump.db";
         statistics-file  "/var/stats/named.stats";
         listen-on        { any; };
         allow-query      { any; };

zone "baronobeefdip.com" {
type master;
file "master/baronobeefdip.com.db";
};
and heres the /etc/namedb/master/baronobeefdip.com.db
Code:
$ttl 3H
@      IN      SOA      baronobeefdip.     root.local.(
               2        ; serial number
               3500     ; refresh seconds
               3500     ; retry seconds
               3500     ; expire seconds
               3500 )   ; minimum seconds
;
baronobeefdip.com.      IN    NS    baronobeefdip.
baronobeefdip.          IN    A     192.168.1.53
i check all the files to see if they all work and have no syntax errors but when I run this command
Code:
# nslookup baronobeefdip.com
i get this
Code:
;; Got SERVFAIL reply from 127.0.0.1, trying next server
whats going on here i thought it should have worked

Last edited by baronobeefdip; 07-03-2011 at 11:44 PM.
 
Old 07-04-2011, 11:44 AM   #6
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
SERVFAIL... couple things:
  1. What's in /etc/resolv.conf?
  2. What does $ sockstat -4l show?

---

BTW, for better lookup utilities, I recommend either dig(1) or host(1).

Last edited by anomie; 07-04-2011 at 11:45 AM.
 
Old 07-04-2011, 02:17 PM   #7
baronobeefdip
Senior Member
 
Registered: Jul 2009
Distribution: Debian Squeeze
Posts: 1,267

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by anomie View Post
SERVFAIL... couple things: [list=1][*] What's in /etc/resolv.conf?
i thought that stuff was suppossed to be automatically put into the resolv.conf file, especially when you ping the DNS server from another box that doesn't know where or what it is.
 
Old 10-22-2013, 03:16 PM   #8
ekrekeler
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
Method

Hi I'm somewhat new to FreeBSD. However, I've come across the same problem watching an old tutorial. How can I resolve this issue? I just want to start a DNS. Like I said, I'm a noob, so a video would be greatly appreciated if someone can find one.
Thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND forward zone working reverse not working n03x3c Linux - Server 1 07-03-2010 04:52 AM
Bind not working like it should... lss1 Linux - Server 1 10-22-2007 03:17 PM
Need help with Bind on Ubuntu, can't seem to get it working enigma_0Z Ubuntu 1 04-24-2006 05:52 PM
bind in not working! cwc Red Hat 7 12-06-2005 07:56 AM
Major DNS problems with BIND in freebsd 4.8 release jamminparidise *BSD 2 02-03-2004 09:42 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration