Sponsored Content
Full Discussion: Setting Up Dns Server In Bsd
Top Forums UNIX for Dummies Questions & Answers Setting Up Dns Server In Bsd Post 9192 by eNTer on Tuesday 23rd of October 2001 06:28:16 PM
Old 10-23-2001
Re: Setting Up Dns Server In Bsd

Deppends on what BSD you usethis answer... If you're using FreeBDS [haven't yet tryed OpenBSD, NetBSD etc] all you have to do is :
- edit your /etc/rc.conf file and add a line which says named_enable="YES", and if needed add another like named_flags="-u bind -g bind" (the second if you want to run named in a sandbox)
- do a sh make_localhost in /etc/namedb
- edit your /etc/namedb/named.conf and define at least a zone depending on your needs (master/slave). You could also define some ACLs to restrict access to your server
- write the files containing your zones, usualy located in /etc/namedb/s
- restart the daemon: # killall -HUP named or start it # named [named_flags]

A sample zone file is the one generated by make_localhost script, you could use it as a template. Don't forget to increment the serial number of the zone at each change !

Quote:
Originally posted by BSD_NEWUSER
I just learning BSD So how would you go about setting up a DNS server please explain like A,B,C I am a new very new UNIX users so any help would be great thanks


Smilie Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

setup a DNS server for my redhat server

Using Redhat Linux Enterprise AS 4 can someone teach me how to setup a dns server for my webserver? i've registered a domainname at mydomain.com but when i type in the domain i register i cannot enter to my webserver. someone told me that it is related with the DNS setting on my server. i've... (2 Replies)
Discussion started by: kaixiang88
2 Replies

2. Linux

setting primary dns

Hi, I am running Fedora 7. I seem to remember there being a command to determine the primary dns. Can anyone help me find out what it is? Thanks! (2 Replies)
Discussion started by: user23
2 Replies

3. 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

4. Solaris

Setting up local DNS Server

Hi , Could some one please share some docs or steps to set up solaris box as a local DNS . Thx (1 Reply)
Discussion started by: skamal4u
1 Replies

5. UNIX for Advanced & Expert Users

DNS server choice: Windows DNS vs Linux BIND

I'd like to get some opnions on choosing DNS server: Windows DNS vs Linux BIND comparrsion: 1) managment, easy of use 2) Security 3) features 4) peformance 5) ?? I personally prefer Windows DNS server for management, it supports GUI and command line. But I am not sure about security... (2 Replies)
Discussion started by: honglus
2 Replies

6. Red Hat

dhcp not setting dns and changing to garbage

I have 2 problems. Dhcp is not setting dns and after I manually set my dns it changes to garbage. I literally just used command to set dns which is a good copy of resolv.conf: sudo cp /home/bob/Desktop/scripts_9-12-2011/resolv.conf /etc/resolv.confHere is a copy of my resolv.conf. #... (5 Replies)
Discussion started by: cokedude
5 Replies

7. Linux

Setting up slave DNS?

can someone point me in the right direction im trying to setup a Slave dns server this is my named.conf file zone "website1.org" { type slave; file"mydb-for-website1-org"; notify NO; };and this is my var/named/mydb-for-website1-org $TTL 3D @ IN SOA ... (1 Reply)
Discussion started by: gangsta
1 Replies

8. UNIX for Dummies Questions & Answers

Help me setting up dns and understanding it.

Hi I need to set up a dns server for Oracle 11g rac setup. I got some files (copied from friend) named.conf and related files in /var/named , i was told that this would work fine. But i am getting some issues. I am attaching the files here. The problem is dig... (1 Reply)
Discussion started by: ankurk
1 Replies

9. Ubuntu

Network Manager not setting correct DNS servers

Since a few weeks i use Ubuntu 16 on my laptop: # uname -a Linux xxxx 4.8.0-52-generic #55~16.04.1-Ubuntu SMP Fri Apr 28 14:36:29 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux Because i want to use a custom name server i set the properties in the "Edit Connections" dialogue to the following: ... (2 Replies)
Discussion started by: bakunin
2 Replies

10. Solaris

DNS client added to DNS server but not working

Hi, We have built a new server (RHEL VM)and added that IP/hostname into dns zone configs file on DNS server (Solaris 10). Reloaded the configuration using and added nameserver into resolv.conf on client. But when I am trying nslookup, its not getting resolved. The nameserver is not able to... (8 Replies)
Discussion started by: snchaudhari2
8 Replies
bindconfig(8)						      System Manager's Manual						     bindconfig(8)

NAME
bindconfig - Configures BIND services for a single system or cluster SYNOPSIS
/usr/sbin/bindconfig [-ui cui [clioptions] | gui [x resources]] /usr/sbin/sysman dns [-ui cui [clioptions] | gui [x resources]] OPTIONS
Specifies the user interface to be invoked. The choices are: Specifies command line interface. Specifies graphical user interface. Spe- cific command line options that will be used to interact with netconfig. The syntax is as follows: Provides a brief help message, listing all the configurable components along with the actions that can be performed on those components. Configurable components are indicated in Help output by a "-" prefix. Provides a detailed help message on how to configure the specified configurable component. Each action will be listed on a separate line with the attributes that can be used for the action. The configurable components are: Sets the respective variables in the /etc/rc.config.common file to denote that the system is configured as a BIND client. Sets the respective BIND variables in the /etc/rc.config.common file to denote that the system is configured as a BIND server, and allows the user to specify the boot, cache, and BIND database directory. The named daemon can be started and stopped during this configuration. Sets the resolution order in the /etc/svc.conf and /etc/svcorder files. Also sets the resolution parameters such as domain and name server in the /etc/resolv.conf file. This item must be configured in order for your system to run any BIND service as either a client or server. Configured only when the BIND service type is Server. Sets the domains of the zones the system has authority over in the /etc/namedb/named.boot file and creates files for the BIND database to be stored in. Resource records are specified for every zone configured, and the resource record data is stored in the respective zone database files. Used primarily to deconfigure BIND on a system, this removes all traces of BIND from the /etc/rc.con- fig.common, /etc/namedb/named.boot, /etc/resolv.conf, /etc/svcorder and /etc/svc.conf files and kills the named daemon if it is running. Used to perform a specific action on the selected component, optionally by altering the attribute's value for the selected component. A list of actions and their specific attribute-value pair will be listed by the clioption -configurable_component>Help. The actions are: Causes a new configuration to be created on the system for the selected component Modifies an existing configuration for the selected com- ponent Adds a new value to an attribute on an existing configuration for the selected component Deletes a value of an attribute on an existing configuration for the selected component Removes an existing configuration for the selected component Lists all the attribute- value pairs for the selected component on the system The x resources are standard X11 resource options. For more information, see the X(1X) reference page. DESCRIPTION
The Bind Configuration application, bindconfig, allows a system to be configured as a Berkeley Internet Name Domain (BIND) Client, which queries a BIND server for host name and address information, interprets responses, and passes the information to requesting applications, or as a BIND Server, which is the authoritative source for information about a zone or zones. The BIND server either maintains the master copy of the hosts database for the zone or zones, or obtains the required information. Before using bindconfig, be sure to configure Network Interfaces using the Network Configuration Manager application. You can access net- config from the Configuration Checklist. If the Network Interfaces are down when you configure your system as either a BIND client or a BIND server, the named daemon will not start. Use bindconfig to: Configure the host system as a master nameserver for one or more zones, as a caching-only nameserver, or as a nameser- vice client Initialize and maintain BIND data files and generate resource records to manage areas such as: host name to address/address to host name mapping, host information, host name aliasing, name servers, mail exchange, and the cache file root server list Manage the BIND boot files, including creation of multiple zones of authority, designation of forwarders, and indication of slave configurations Maintain the resolver configuration file, specify queriable name servers, and specify an alternate domain search list The bindconfig application provides a host name and address lookup service for the Internet Network. The application distributes only the hosts database in the Tru64 UNIX operating system. You must have root privileges to run this application. The bindconfig command has three user interface options: Graphical user interface (GUI) Command line interface (CLI) Menu interface (Menu) Running the Graphical User Interface Option: To start bindconfig from the graphical user interface, do the following: Click on the Application Manager icon on the CDE front panel. Double click on the System_Admin application group icon. Double click on the Configuration application group icon. Double click on the BIND icon. To start bindconfig from the xterm, enter the following command from the xterm: /usr/sbin/sysman dns Running the Command Line Interface Option: To start the bindconfig command line interface, enter the following command from the xterm: sysman dns -ui cui [clioptions] Running the Menu Interface Option: To start the bindconfig menu interface, enter the following command from the xterm: sysman dns This option starts the setup script for bindsetup. For more information, see the bindsetup(8) reference page. Running Online Help: You can view online help for this application by entering the following at the command line: /usr/dt/bin/dthelpview -helpVolume /usr/dt/appconfig/help/C/BindConfig.sdl You can also view online help for this application by choosing Help from the menu bar in the GUI version. The Help pulldown menu is dis- played, providing the following options: Overview: Displays the Overview section of the help volume, which describes the purpose of the application, how to run the application, and how to exit the application. Tasks: Displays the Tasks section of the help volume, which describes how to use the application to perform various tasks. Reference: Displays the Reference section of the help volume, which describes all dialog boxes and dialog box components in the applica- tion. On Item: Activates the On Item help functionality by displaying a question mark as the cursor. When the cursor is positioned on any compo- nent in the application and you click on the component, a Help Viewer window is opened and the help for the selected component is displayed in the window. Using Help: Displays the standard CDE instructions on how to use the Help Viewer. About: Displays version, copyright, and trademark information for the application. EXAMPLES
The following example shows how to configure the system for a BIND client configuration using the command line interface: sysman dns -ui cui -resolver create domain=x.y.com ns=1.1.1.1 sysman dns -ui cui -client create The following example shows how to add an additional name server using the command line interface: sysman dns -ui cui -resolver add ns=1.1.1.2 search=y.y.com The following example shows how to con- figure the system as a BIND server using the command line interface: bindconfig -ui cui -server create domain=x.y.com boot=/etc/namedb/named.boot cache=/etc/namedb/named.ca dir=/etc/namedb active=yes The following example shows how to deconfigure all BIND services using the command line interface: bindconfig -ui cui -all purge FILES
Lists locally maintained host names and IP addresses The database name with the selected naming services Specifies the environment vari- ables that define the BIND configuration on your system Default BIND Files: BIND server data file directory BIND server boot file BIND server cache file BIND server local host reverse address host file BIND primary server hosts file BIND primary server reverse address hosts file BIND data file SEE ALSO
Commands: named(8), nslookup(8), rc.config(8), svcsetup(8), xauth(1X) Files: resolv.conf(4), svc.conf(4) Network Services: bind_intro(7) bindconfig(8)
All times are GMT -4. The time now is 06:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy