LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 12-12-2012, 08:20 AM   #16
Blue_Ice
Member
 
Registered: Jul 2006
Location: Belgium
Distribution: Debian, Fedora, CentOS, Windows
Posts: 352

Rep: Reputation: Disabled

The location of the zone files can also be in: /etc/named or /etc/bind.
 
Old 12-12-2012, 10:39 AM   #17
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 587

Rep: Reputation: 58
Depends on the OS and if it's not setup the chroot env for bind. But, yes, it can be there too.
 
Old 12-12-2012, 02:49 PM   #18
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Thanks. Could you tell me what commands I should use to check DNS file setup correct?
 
Old 12-12-2012, 04:11 PM   #19
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Thanks. When I put vi /etc/named and vi /etc/bind I got nothing....

~
~
~
"/etc/named" New File

And

"/etc/bind" New File

Can you tell me where other places I can do and add the MX records?
 
Old 12-13-2012, 02:55 AM   #20
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 587

Rep: Reputation: 58
Well first of all, tell us what distro you are using and then check if it's really running "ps -ef|grep named"
 
Old 12-13-2012, 03:20 AM   #21
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
This is your profession? And your company is already running it's own name servers? Why aren't you asking these questiosn of your peers / superiors? Have you not documented any of your own IT systems??
 
Old 12-13-2012, 03:51 AM   #22
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 587

Rep: Reputation: 58
I do hope you are talking to hiep.pham
 
Old 12-13-2012, 03:47 PM   #23
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Acid:

When I insert this command and I got this

[pham@mail1 ~]$ vi /var/named
" ============================================================================
" Netrw Directory Listing (netrw v125)
" /var/named
" Sorted by name
" Sort sequence: [\/]$,\.h$,\.c$,\.cpp$,*,\.o$,\.obj$,\.info$,\.swp$,\.bak$,\~
" Quick Help: <F1>:help -:go up dir D:delete R:rename s:sort-by x:exec
" ============================================================================
../

~
~

~
~
"/var/named" is a directory 7,1 All

I don't see any where I can add or update MX records. Please advise
 
Old 12-13-2012, 04:08 PM   #24
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
I think you need to get to grips with the basics of Linux first. You do not appear to be at all ready to perform these tasks. Again, you say this is your work place? Is there really no one else you can ask who knows anything about Linux?
 
Old 12-13-2012, 04:12 PM   #25
hiep.pham
Member
 
Registered: Jun 2012
Posts: 54

Original Poster
Rep: Reputation: Disabled
Acid: If I could ask someone from our company then I shouldn't be in this forum don't you think? Again thank you for helping me I guess..
 
Old 12-13-2012, 04:16 PM   #26
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
Well if you need to do this stuff, you need to understand some basics about Linux first, how to use vi, how to navigate directories etc.
 
Old 12-14-2012, 03:17 AM   #27
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 587

Rep: Reputation: 58
acid is right, but also you need to know where exactly the db file is, otherwise you will never do this right. Until now you showed only empty file or directories, which kind of says you don't know where they are (the configuration files) and maybe you should ask someone from you company to tell you. After that adding the MX entry is not really that hard.

Last edited by robertjinx; 12-14-2012 at 03:18 AM.
 
Old 12-14-2012, 06:39 AM   #28
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
Well, in post #1 you said you are using CentOS 5.3 .
By default (as that's a free rebuild of RHEL 5.3) I'd expect it to be chrooted.
See Chap 16 of http://www.linuxtopia.org/online_boo...ion/index.html.
You should bookmark that manual, you're going to need it.

By the way, RHEL/Centos is now on 5.8; you should probably update, if only for security's sake.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Add Txt records hiep.pham Linux - Server 12 11-30-2012 06:59 PM
How to add ptr records in SunOS 5.10 DNS Server riyaskt Linux - Newbie 5 10-10-2012 08:11 AM
Add/edit/delete MS DNS records from Linux psychobyte Linux - Networking 3 05-24-2011 03:23 PM
[SOLVED] MX Records / A Records / CNAME Records - Advice Please fusion1275 Linux - Newbie 15 01-18-2011 05:06 AM
command line tool to add user records to LDAP fantasygoat Linux - Server 1 06-12-2010 05:13 AM


All times are GMT -5. The time now is 08:18 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration