Link to home
Start Free TrialLog in
Avatar of phishbone4
phishbone4

asked on

Open BSD 3.3 Change DNS from Master to secondary

I have ab old OpenBSD 3.3 Unix server hosting DNS. I have limited experience on this server. Now we are making some major changes on my network which is forcing me to make some changes on this server.

1- Presently this BSD server is a master DNS for many domains. I have a windows server as the secondary. How do switch it and make the Windows the master of those domains and BSD the secondary for those Domains in DNS on the BSD?

2-How do I switch the domain on the OpenBSD?

Thanks,
Avatar of DonKoyote
DonKoyote
Flag of United States of America image

It's not really matter of OpenBSD, it's rather issue of the DNS server you use on it.

If it's Bind, you need to make changes on named.conf file (i.e.  /var/named/etc/named.conf), and change entries from master to slave (see named-simple.conf as sample).

Example:
#slave needs to specify where the master is
masters { 192.168.1.10; [...;] };

Next, you can/should check/update /etc/resolv.conf,  /etc/hosts and /etc/myname.
Avatar of phishbone4
phishbone4

ASKER

It is a bind DNS. OK I get how I will make it a slave but who becomes the master? Does my Windows which is secondary become master? I want to make my WIndows server master instead of secondary.

Also, what about switching domains?
You need to configure your Windows Server as a master for your domain. Then, configure your hosts to use both servers as a DNS servers (master - Windows Server, slave - OpenBSD).
When you say master Windows and Slave OpenBSD--do you mean primary windows and secondary OpenBSD? sorry I just want to make sure.

Also, if I want to switch this server to anther domain, how would i do it?
ASKER CERTIFIED SOLUTION
Avatar of DonKoyote
DonKoyote
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That answes my DNS questions. I'll let you know how it goes.

The actual OpenBSD is in domain company.com as an example. How would I move to us.company.com.

How do I change the domain this server is in??
As I mentioned earlier, OpenBSD machine just needs /etc/hosts, /etc/myname, and /etc/resolv.conf files to be reviewed. All other changes depends on what services does it serves (i.e. MTA, POP3, HTTPD... etc.).

All depends if you serve any services on OpenBSD machine. It's not like on Windows Servers or Windows Hosts in the Active Directory domain.
one more question. How do I change the IP address of this server? These changes are happening this weekend so I want to make sure I have everything covered.
OpenBSD has all network card configuration in /etc/hostname.if file where "if" is a network adapter three letter name (see ifconfig command output). Change IP and mask to your needs and run /etc/netstart.
I don't see anything called hostname in the etc directory.
I foud it in a file called rc.conf in ETC. is this where I need to make these changes.
If it's correctly configured OpenBSD, you should see hostname.* files in your /etc/ directory.
If not... I can't describe all possible configuration methods used on your OpenBSD machine.

Show me output of "uname -a", "ifconfig" and "ls /etc/host*"

(By the way, this is going far away from the topic...)
IFCONFIG COMMAND IS NOT WORKING? WHAT AM i DOING WRONG? I WAS ABLE TO DO AN LS FROM WITHIN ETC BUT IT WOULD NOT LET MAKE CD INTO HOST.


# uname -a
FreeBSD ns2.telmar.com 3.3-RELEASE FreeBSD 3.3-RELEASE #0: Thu Sep 16 23:40:35 GMT 1999     jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC  i386
# ifconfig
ifconfig: not found
# ls /etc/host
ls: /etc/host: No such file or directory
# cd etc
cd: can't cd to etc
# cd /etc
# ifconfig
ifconfig: not found
# cd /host
cd: can't cd to /host
# cd /hosts
cd: can't cd to /hosts
# ls
#adduser.conf#          objformat               pw.j16321~
#ftpusers#              pam.conf                pw.j32769~
#group.bak#             passwd                  pw.jQT314~
#groups#                passwd.orig             pw.kB3473~
#inetd.conf#            pccard.conf.sample      pw.l79109~
#passwd#                pccard_ether            pw.m32658~
#pw.E35273#             periodic                pw.m32685~
#pw.P11792#             phones                  pw.m47358~
#pw.S85821#             ppp                     pw.n56938~
#pw.T16179#             printcap                pw.n73498~
#pw.T16628#             profile                 pw.n86739~
#pw.Tl1599#             protocols               pw.nF7576~
#pw.X16732#             pw.A74080~              pw.o74361~
#pw.X49997#             pw.A76395~              pw.p54739
#pw.X89687#             pw.B32401~              pw.p66661~
#pw.c14726#             pw.B57244~              pw.p76434~
#pw.c92528#             pw.B85592~              pw.q66146~
#pw.d29646#             pw.B89434~              pw.q92522~
#pw.j61728#             pw.D30998~              pw.r73486~
#pw.k97817#             pw.D66820~              pw.r89707~
#pw.m16649#             pw.F85410~              pw.r92507~
#pw.p54739#             pw.H47399~              pw.r97276
#pw.r16644#             pw.I73526~              pw.s30677~
#pw.r97276#             pw.I98738~              pw.s35391~
Mindy Ridress - SRBI    pw.J31039~              pw.sD5890~
adduser.conf            pw.J70630~              pw.t47351~
adduser.conf.bak        pw.J78916~              pw.t47494~
adduser.message         pw.J92557~              pw.t89479~
aliases                 pw.K31097~              pw.tj4964~
aliases.db              pw.L16651~              pw.trT298~
amd.map                 pw.L73548~              pw.u63930~
apmd.conf               pw.L92164~              pw.u92566~
auth.conf               pw.L92553~              pw.uq7614~
crontab                 pw.M73490~              pw.w16184~
csh.cshrc               pw.M94805~              pw.w35402~
csh.login               pw.N32672~              pw.w78850~
csh.logout              pw.N73522~              pw.w89408~
daily.local             pw.Nj9518~              pw.wDL347~
defaults                pw.Nv4940~              pw.x11928~
dhclient.conf           pw.O51121~              pw.x66138~
disktab                 pw.O74810~              pw.x66481~
dm.conf                 pw.OJ9382~              pw.x78541~
dumpdates               pw.P73447~              pw.x92529~
fbtab                   pw.P79379~              pw.y83478~
fstab                   pw.P89416~              pw.y92573~
ftpusers                pw.PX9535~              pw.yQ7608~
gettytab                pw.Q92765~              pw.yU6756~
gnats                   pw.R31770~              pwd.db
group                   pw.R47284~              rc
group.bak               pw.R85563~              rc.atm
group.orig              pw.Rn9368~              rc.conf
group_hold              pw.S35387~              rc.devfs
group~                  pw.Ss7612~              rc.diskless1
host.conf               pw.T25467~              rc.diskless2
hosts                   pw.U35381~              rc.firewall
hosts.allow             pw.U47342~              rc.i386
hosts.equiv             pw.U50511~              rc.isdn
hosts.lpd               pw.U66120~              rc.network
inetd.conf              pw.WG4957~              rc.pccard
isdn                    pw.X78565~              rc.resume
kerberosIV              pw.X81592~              rc.serial
localtime               pw.X92526~              rc.shutdown
locate.rc               pw.XL8903~              rc.suspend
login.access            pw.Y76615~              remote
login.conf              pw.Z32676~              resolv.conf
mail                    pw.Z35282~              rmt
mail.rc                 pw.Z85567~              rpc
make.conf               pw.a22339~              security
manpath.config          pw.a92569~              sendmail.cf
master.passwd           pw.c47403~              services
modems                  pw.c92517~              shells
motd                    pw.cB3640~              skel
mtree                   pw.e85382~              skeykeys
namedb                  pw.e85627~              spwd.db
namedb.BAK.tar          pw.e85900~              syslog.conf
namedb.tar              pw.fN4946~              syslog.conf.orig
netstart                pw.h61730~              termcap
networks                pw.h85710~              ttys
newsyslog.conf          pw.i14728~              uucp
ntp.conf                pw.iL4953~
ntp.drift               pw.ir4906~

Really need your help on this one for this weekend. Thanks
As I thought, we are talking about wrong system :)

You have a FreeBSD, not OpenBSD.
So how would I make those changes to the network IP?? Is the DNS changes the same?
Modify your rc* file for network configuration changes and rest should be the same.