LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-25-2018, 12:06 AM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Rep: Reputation: 34
named.conf and DNS examples.


Greetings,
I’m using CentOS 7.x I would like to setup a web server to serve up some web pages.

I’m trying to setup DNS and the ‘named.conf’ file and the destro CentOS provides such a file but it sort of looks like it would be a sample and the user has to add all sorts of personalized content to it in order to make it work properly.

I have been looking at the sample in the ‘serverworld.com’ web site but there are a number of questions which I have questions about.

I would like to know if anyone could direct me to an example of a good ‘named.conf’ file which is more complete.

I had been thinking of backing up the current ‘named.conf’ file and copying in the one in serverworld .com and trying to make that one work. Lots of samples that I have look at aren’t well annotated and hard to understand.

Thanks
 
Old 02-25-2018, 01:25 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
One can read books about how to set up a name server. Suggest searching more.
Have you looked at man bind and (I think) man named.conf?

Have you registered a domain name? DNS is about resolving domain names to IP addresses. If you don't have a domain name, you don't need DNS. If you have a domain name, see if your registrar provides a DNS service, then you won't need to configure one.

That said, in my experience, working with the distributed named.conf (and yes...back it up, always, before making any changes), and a good tutorial (mine was the O'Reilly book "DNS and BIND", I'm not sure if all that's available on line, but it or its equivalent probably is) will serve you better to learn BIND/DNS than an "example" named.conf. Just

In particular, look at how to define a zone and what needs to be defined within it...and don't hesitate to ask specifics if/when you get stuck.

Last edited by scasey; 02-25-2018 at 01:28 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
in /etc/named.conf for DNS configuration? chantiem48@gmail.com Linux - Server 1 07-13-2014 11:56 PM
in /etc/named.conf for DNS configuration? chantiem48@gmail.com Linux - Networking 1 07-12-2014 06:09 PM
dns - named.conf - problem agriz Linux - Server 8 07-12-2014 03:41 PM
Configuring DNS on el5 - error starting named - Locating //etc/named.conf failed rajslinux Linux - Newbie 8 04-13-2012 06:17 AM
DNS named.conf path asyadiqin Linux - Newbie 1 08-11-2004 10:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration