Changing DNS "A" Records


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Changing DNS "A" Records
# 1  
Old 08-29-2008
Question Changing DNS "A" Records

I am kind of a beginner in Unix. Our DNS server is on a Unix server running FreeBSD, and I just add a new Windows print server running Server 2003 R2 to the network. I am having trouble - I can Ping the IP address of the server but not the server name. I was informed that I would have to add an "A" record of the server on our DNS server. I just need a little help trying to add this record in FreeBSD.

Thanks

mj
# 2  
Old 09-01-2008
Java

It depends on the DNS server you are running.
If you are using BIND version 9 (these days this is the most common), it's fairly straightforward to add new servers but you'll need to find out if it's a synamic or static zone first, then either edit the zone file and send a SIGHUP to the named process (if it's static) or use nsupdate to tell it about the new address (A) record (if it's dynamic).

A somewhat more user-friendly option would be to install 'webmin' (google will find you a downloadable package of it) and then add the options 'b9ddns' module for BIND 9.

If you are running BIND 8 or BIND 4, it's just a matter of editing zones files, and updating the serial number.
# 3  
Old 09-02-2008
So how would I find out which version of BIND we are running in FreeBSD? How would I edit the zone?
# 4  
Old 09-02-2008
I'm pretty sure freeBSD doesn't run BIND (in any other mode than a DNS cache at least) by default. That means you'll have to go look at it.
Probably the quickest way would be to do this:
Code:
# ps auxw | grep named
root     25099  0.6  0.1 9952 9048 ?        S   Aug 10 529:57 /usr/local/sbin/named
# /usr/local/sbin/named -v

Then report back what it shows you.
# 5  
Old 09-03-2008
If you're logged on the DNS server run "named -v" and it will show you the version. Else, if outside, you can run "dig @ns.you.com version.bind chaos txt" if this information is chosen to be disclosed.
Then edit the respective zone file, and restart the service. But if this is your first contact with bind, ask a colleague, or someone near you to assist, as the things can get messy.
# 6  
Old 09-03-2008
Another popular name server is tinydns. Anyway, you can look for what startup scripts run when the machine starts to see what services it will bring up; I guess on *BSD it's still /etc/rc.d/* and /usr/local/etc/rc.d/* (see also Starting Services for some background).
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. AIX

Apache 2.4 directory cannot display "Last modified" "Size" "Description"

Hi 2 all, i have had AIX 7.2 :/# /usr/IBMAHS/bin/apachectl -v Server version: Apache/2.4.12 (Unix) Server built: May 25 2015 04:58:27 :/#:/# /usr/IBMAHS/bin/apachectl -M Loaded Modules: core_module (static) so_module (static) http_module (static) mpm_worker_module (static) ... (3 Replies)
Discussion started by: penchev
3 Replies

2. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies

3. Solaris

Changing "rx_queue_number" in "ixgbe.conf". Reboot or Network Restart?

Hi all, First post here. Working on Solaris 10, on a Sun t4-4, need to change RX queue depth(ethernet, not HBA) and was wondering if i could get by with just restarting the network or if i should just bounce the whole shebang. Apologies if i missed a similar thread. if there is one, please... (2 Replies)
Discussion started by: caspnx
2 Replies

4. UNIX for Beginners Questions & Answers

Extract delta records using with "comm" and "sort" commands combination

Hi All, I have 2 pipe delimited files viz., file_old and file_new. I'm trying to compare these 2 files, and extract all the different rows between them into a new_file. comm -3 < sort file_old < sort file_new > new_file I am getting the below error: -ksh: sort: cannot open But if I do... (7 Replies)
Discussion started by: njny
7 Replies

5. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

6. Shell Programming and Scripting

AWK for multiple line records RS="^" FS="#"

I have to pull multiple line records with ^ as the record separator(RS)... # should be my field separator (FS)... Sample record is: ^-60#ORA-00060: deadlock detected while waiting for resource ORA-00001: unique constraint (SARADM.TCKNUM_PK) violated#PROC:AVAILABLE_FOR_GETNXTTIC#02/27/2012... (7 Replies)
Discussion started by: Vidhyaprakash
7 Replies

7. UNIX for Dummies Questions & Answers

My question is all "03" records move to output file without changing

This is my input file 01,011600033,011600033,110516,0834,2,90,,2/ 02,011600033,011103093,1,110317,0834,,2/ 03,105581,,015,+00000416418,,,901,+00000000148,,,922,+00000000354,,/ 49,+00000000000416920,00002/ 03,113806,,015,+00000559618,,,901,+00000000096,,,922,+00000000621,,/... (1 Reply)
Discussion started by: sgoud
1 Replies

8. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

9. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
Login or Register to Ask a Question