Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to add a DNS A record

Posted on 1998-12-30
4
Medium Priority
?
269 Views
Last Modified: 2013-12-23
I need to add an A record for a domain name, "www.domainname.com". The DNS server is on a Sun System V Release 4.0 box. My experience with Sun/Unix is very limited. Honestly, I have no clue how to adminster Unix. In plain english, how do I add/modify DNS entries and make the new entry active? Thanks.
0
Comment
Question by:mpopal
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 3

Expert Comment

by:bluepet
ID: 1582741
First logon to the DNS server edit this file.... which is a file which tell the DNS daemon - where all the files are located.....

/etc/named.boot

below is what the content looks like (if have been setup properly)

directory    /var/named
cache    .      db.cache
primary  domainname.com  db.domainname.com





edit the file db.domainname.com  located in the directory  /var/named as shown above

db.domainname.com

@  IN   NS     bart.domainname.com
localhost   IN A   127.0.0.1
just add the line below....
www     IN    A    202.188.111.111   <-   this is the IP address of your www machine

or you can do this

mozart   IN   A  202.188.111.111   where mozart is your web server name.....
www    IN   cname  mozart  


save it....

then do this in the dns server

ps -ef | grep named
you will see something like that
root   304   134   0  11:00 bla bla ....  grep named
root   104   134   0  11:00 bla bla .... named

kill -HUP 104

that is to kill the named daemon and restart it again... the -HUP flag.... the 104 is the process ID....

after that try ping www.domainname.com to see whether your setup is okay.... if you can ping it then it's okay


hope that help

bluepet
0
 
LVL 3

Author Comment

by:mpopal
ID: 1582742
Thanks for the reply. I tried what you told me, but I can't ping the name. THis is what I've done so far.

First of all, I'm trying to add a new domain name to a server so it can be accessd for WWW purposes. This is what I've done.

1. In "/etc", I've edited the file called named.boot.
2. In "named.boot" I entered "Primary            domainname.net            db.domainname.com
 I assume that the named.boot tells DNS that domainname.net is the domain name and the database file for it exists in the /etc/named/db.domainname.com file. (Like the above file).
3. In "/etc/named" I created a file called db.domainname.com, refereced above. This file includes the following:

; BIND version named 4.9.5-REL Tue Nov 26 00:08:42 EST 1996
; BIND version wjs@catbert:/var/tmp/bind-4.9.5/named
; zone 'newdomain.net'   last serial 4
; from 207.32.*.*   at Mon Jan  1 14:25:57 1999
$ORIGIN net.
domainname      IN      SOA      ns1.*orp.com. administrator.*orp.com. (
            7 3600 600 86400 3600 )
            IN      NS      ns1.*corp.com.
            IN      MX      10 emh.*corp.com.
$ORIGIN domainname.net.
www            IN      A      207.197.*.*

4. I save the file (both files) then I ran what you told me to run. (ps -ef | grep named and Kill -HUP 104)

I can't ping the domain name (www.domainname.net) Nslookup of course times out for that name as well.

What am I missing. Thanks.
0
 
LVL 3

Accepted Solution

by:
bluepet earned 100 total points
ID: 1582743
Hummm looks like your system is not using the dns.... so
check the file nsswitch.conf in /etc

pico the file... or edit it using whatever editor you use.... vi... or whatever

then check that the line where it got

hosts:  files

add a dns at the end like below

hosts:  files  dns

bluepet


0
 
LVL 3

Author Comment

by:mpopal
ID: 1582744
bluepet,

Thanks for the reply. I finally got it to work. The thing I was doing wrong was the process id. "kill -HUP 104", was the wrong process id. I found the dns process, by ps -ef. Once I type kill -HUP 233, which 233 is the DNS (in.name) process, it worked.

You were almost right. At least you led me to the right direction, therefore I'll award you with the points. Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
This article is in regards to the Cisco QSFP-4SFP10G-CU1M cables, which are designed to uplink/downlink 40GB ports to 10GB SFP ports. I recently experienced this and found very little configuration documentation on how these are supposed to be confi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question