Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to update DNS record in Solaris 5.10? Post 302951752 by arocker on Monday 10th of August 2015 11:46:58 AM
Old 08-10-2015
Thanks for your reply

Yes I'm running BIND, i have located the db file, but not sure if just changing the ip in the db file and SOA increment will suffice?

how do i restart BIND?

Thanks

---------- Post updated at 10:46 AM ---------- Previous update was at 10:14 AM ----------

To Add more i commented out the existing entry for the zone i am updating the IP in, added a new line with new ip address, updated the SOA, restarted bind using below commands but when i do nslookup it still shows the old ip address.

bind restart

# svcadm disable /network/dns/server
#
# svcadm enable /network/dns/server
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

DHCP update DNS ?

Hi all, I'm in the dark about this. I have setup a dhcp server and a DNS server. I'm confuss as to how to have DNS auto update any new clinet that the dhcp has given an ip address for. Can this be done. I think that I'm missing something in the configuration of DHCP. I was told that when a DHCPD... (3 Replies)
Discussion started by: larry
3 Replies

2. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies

3. Shell Programming and Scripting

awk script to update header record

I am using HP UX and think this may be done with awk but bot sure. I have a file with a several header records and undeneath many detail records I need to put in the header record the number of detail records above this header record and number of detail records below this header record Header... (5 Replies)
Discussion started by: klut
5 Replies

4. UNIX for Dummies Questions & Answers

Configuring DNS MX record

I now know that I have to configure dns mx to actually be able to send email correctly to my mail. I have the link(user guide) on how to do this : http://bobcares.com/blog/?p=29 but where do I configure it? Is there a specific file for the configuration? I really don't understand this part. (2 Replies)
Discussion started by: anaigini45
2 Replies

5. IP Networking

DNS does all slave Name Server must be in the zone Resource Record file?

Hy guys, I've a problem configuring my Name Server (using bind 9) which is I'ts always necessary to put all slave Name Server for a zone in the zone resource record file or db (as you prefer)? I've this scenario: A - my domain which is son of some TLD and I delegated into two new domains B... (1 Reply)
Discussion started by: pharaoh
1 Replies

6. Red Hat

DNS A-Record point to another DNS

Hi, I have a question on how to point the DNS server-1's A-record to second DNS server, which is DNS server-2. So, the computer can access other domain which only listed in the DNS server-2. The scenario is as follow: http://img689.imageshack.us/img689/6333/12234.png How to configure this... (4 Replies)
Discussion started by: Paris Heng
4 Replies

7. UNIX for Dummies Questions & Answers

How to Create a new internal DNS CNAME record

I need to create a new internal DNS CNAME record called "project.omc.eod" that points to a server called SPARC27.ds.eod. This is my first time doing this and any help would be greatly appreciated. Thanks in advance (10 Replies)
Discussion started by: mikeade
10 Replies

8. Red Hat

dns update issue

i have redhat service as public dns i have added new entry but when i reload the named service i got this error in log the working directory is not writable (1 Reply)
Discussion started by: leganti
1 Replies

9. Red Hat

[Solved: Missing A Record] DNS issue

Hi, I have recently built a new DNS server and created a new zone. I use an ESMTP server to handle mail and the new domain has been added to this. I can send mail to gmail and other domain addresses but unable to send it to one particular domain. (DSN:Service Unavailable) DNS... (2 Replies)
Discussion started by: Duffs22
2 Replies

10. Programming

MYSQL - trigger update on record insert or update

Right I have a MYSQL database with table1 with 3 columns, colA, colB and colC. I want to combine the data in the 3 columns into a 4th column names col_comb. Here's the SQL command that works: UPDATE table1 SET `col_comb` = CONCAT( `colA` , ' - ', `colB` , ', ', `colC` ); So now I want this... (5 Replies)
Discussion started by: barrydocks
5 Replies
named(1M)						  System Administration Commands						 named(1M)

NAME
named, in.named - Internet domain name server SYNOPSIS
named [-fgsv] [-c config-file] [-d debug-level] [-m flag] [-n #cpus] [-p port] [-t directory] [-u user] [-x cache-file] [-4 | -6] DESCRIPTION
The named utility is a Domain Name System (DNS) server, part of the BIND 9 distribution from ISC. For more information on the DNS, see RFCs 1033, 1034, and 1035. When invoked without arguments, named reads the default configuration file /etc/named.conf, reads any initial data, and listens for queries. in.named is a link to named. OPTIONS
The following options are supported: -4 Use only IPv4 transport. By default, both IPv4 and IPv6 transports can be used. Options -4 and -6 are mutually exclusive. -6 Use only IPv6 transport. By default, both IPv4 and IPv6 transports can be used. Options -4 and -6 are mutually exclusive. -c config-file Use config-file as the configuration file instead of the default /etc/named.conf. To ensure that reloading the configuration file con- tinues to work after the server has changed its working directory due to to a possible directory option in the configuration file, con- fig-file should be an absolute pathname. -d debug-level Set the daemon's debug level to debug-level. Debugging traces from named become more verbose as the debug level increases. -f Run the server in the foreground (that is, do not daemonize). -g Run the server in the foreground and force all logging to stderr. -m flag Turn on memory usage debugging flags. Possible flags are "usage", "trace", and "record". These correspond to the ISC_MEM_DEBUGXXXX flags. -n #cpus Create #cpus worker threads to take advantage of multiple CPUs. If not specified, named will try to determine the number of CPUs present and create one thread per CPU. If it is unable to determine the number of CPUs, a single worker thread will be created. -p port Listen for queries on port port. If not specified, the default is port 53. -s Write memory usage statistics to stdout on exit. This option is mainly of interest to BIND 9 developers and might be removed or changed in a future release. -t directory Change the root directory using chroot(2) to directory after processing the command line arguments, but before reading the configura- tion file. This option should be used in conjunction with the -u option, as chrooting a process running as root doesn't enhance security on most systems; the way chroot() is defined allows a process with root privileges to escape a chroot jail. -u user Set the real user ID using setuid(2) to user after completing privileged operations, such as creating sockets that listen on privileged ports. On Linux, named uses the kernel's capability mechanism to drop all root privileges except the ability to use bind(3SOCKET) to bind to a privileged port and set process resource limits. Unfortunately, this means that the -u option works only when named is run on kernel 2.2.18 or later, or kernel 2.3.99-pre3 or later, since previous kernels did not allow privileges to be retained after setuid(). -v Report the version number and exit. -x cache-file Load data from cache-file into the cache of the default view. This option must not be used. It is of interest only to BIND 9 developers and might be removed or changed in a future release. EXTENDED DESCRIPTION
This section describes additional attributes of named. SMF Properties When starting named from the service management facility, smf(5), named configuration is read from the service configuration repository. Use svcprop(1) to list the properties and svccfg(1M) to make changes. The following application configuration properties are available to administrators: options/server Specifies the server executable to be used instead of the default server, /usr/sbin/named. options/configuration_file Specifies the configuration file to be used instead of the default, /etc/named.conf. A directory option might be specified in the con- figuration file. To ensure that reloading the configuration file continues to work in such a situation, configuration_file should be specified as an absolute pathname. This pathname should not include the chroot_dir pathname. This property is the equivalent of the -c option. options/ip_interfaces Specifies over which IP transport, IPv4 or IPv6, BIND will transmit. Possible values are IPv4 or IPv6. Any other setting assumes all, the default. This property is the equivalent of command line option -4 or -6 options/listen_on_port Specifies the default UDP and TCP port to be used for listening to DNS requests. This property is the equivalent of the command line option -p port. options/debug_level Specifies the default debug level. The default is 0, which means no debugging. The higher the number the more verbose debug information becomes. Equivalent of the command line option -d debug_level. options/threads Specifies the number of CPU worker threads to create. The default of 0 causes named to try and determine the number of CPUs present and create one thread per CPU. Equivalent of command line option -n #cpus. options/chroot_dir Specifies the directory to be used as the root directory after processing SMF properties and the command line arguments but before reading the configuration file. Use this property when using a chroot(2) environment. Synonymous to command line option -t pathname. When using chroot(2), named is unable to disable itself when receiving rndc(1M) stop or halt commands. Instead, you must use the svcadm(1M) disable command. In the event of a configuration error originating in one of the above SMF application options, named displays a message providing informa- tion about the error and the parameters that need correcting. The process then exits with exit code SMF_EXIT_ERR_CONFIG. At startup, in the event of an error other than a configuration error, named exits with exit code SMF_EXIT_ERR_FATAL. Both of this code and SMF_EXIT_ERR_CONFIG cause the start method, smf_method(5), to place the service in the maintenance state, which can be observed with the svcs(1) command svcs -x. In addition to the properties listed above, the following property can be used to invoke named as a user other than root: start/user Specifies the identity of the user that is invoking named. See smf_method(5) and chroot(2). Note that the user must have solaris.smf.manage.bind authorization. Without this role the named will be unable to manage its SMF FMRI and named will automatically be restarted by the SMF after an rndc(1M) stop or halt command. See EXAMPLES for a sequence of commands that establishes the correct authorization. SIGNALS In routine operation, signals should not be used to control the nameserver; rndc(1M) should be used instead. SIGHUP Force a reload of the server. SIGINT, SIGTERM Shut down the server. The result of sending any other signals to the server is undefined. Configuration The named configuration file is too complex to describe in detail here. A list of configuration options is provided in the named.conf man page shipped with the BIND 9 distribution. A complete description is provided in the BIND 9 Administrator Reference Manual. See SEE ALSO. EXAMPLES
Example 1 Configuring named to Transmit Only over IPv4 Networks The following command sequence configures named such that it will transmit only over IPv4 networks. # svccfg -s svc:network/dns/server:default setprop > options/ip_interfaces=IPv4 # svcadm refresh svc:network/dns/server:default # Example 2 Listing Current Configuration File and Setting an Alternative File The following sequence of commands lists the current named configuration file and sets an alternative file. # svcprop -p options/configuration_file dns/server:default /etc/named.conf # svccfg -s dns/server:default setprop > options/configuration_file=/var/named/named.conf # svcadm refresh dns/server:default # svcprop -p options/configuration_file dns/server:default /var/named/named.conf Example 3 Establishing Appropriate Authorization for named To have named start with the solaris.smf.manage.bind authorization, perform the steps shown below. Add the user dnsadmin to the solaris.smf.manage.bind role: # usermod -A solaris.smf.manage.bind dnsadmin Observe effect of command: # tail -1 /etc/user_attr dnsadmin::::type=normal;auths=solaris.smf.manage.bind Modify the service properties: # svccfg svc:> select svc:/network/dns/server:default svc:/network/dns/server:default> setprop start/user = dnsadmin svc:/network/dns/server:default> setprop start/group = dnsadmin svc:/network/dns/server:default> exit # svcadm refresh svc:/network/dns/server:default # svcadm restart svc:/network/dns/server:default Because only root has write access to create the default process-ID file, /var/run/named.pid, named must be configured to use an alterna- tive path for the user dnsadmin. Here is an example of how to accomplish this: # mkdir /var/named/tmp # chown dnsadmin /var/named/tmp Shown below is what you must add to named.conf to make use of the directory created above. # head /etc/named.conf options { directory "/var/named"; pid-file "/var/named/tmp/named.pid"; }; FILES
/etc/named.conf default configuration file /var/run/named.pid default process-ID file ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWbind | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ SEE ALSO
svcs(1), rndc(1M), rndc-confgen(1M), svcadm(1M), svccfg(1M), svcprop(1), chroot(2), setuid(2), bind(3SOCKET), attributes(5), smf(5), smf_method(5) RFC 1033, RFC 1034, RFC 1035 BIND 9 Administrator Reference Manual, published by the Internet Systems Consortium and accessible at www.bind9.net named.conf man page shipped with the BIND 9 distribution BUGS
By default, named attempts to contact remote name servers by either their IPv4 or IPv6 address, even though the host system does not have either IPv4 or IPv6 connectivity (that is, a configured and active interface). To address this issue, either provide the missing connectiv- ity or use the relevant -4 or -6 command line option. When using svccfg(1M), set application property options/ip_interfaces to either IPv4 or IPv6. SunOS 5.11 6 Mar 2009 named(1M)
All times are GMT -4. The time now is 03:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy