Find the answer to your Linux question:
Results 1 to 2 of 2

Thread: setting a DNS

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2009
    South Africa

    setting a DNS

    My current scenario is this, I have a Windows 2003 Small Business Server and fedora proxy server that is used for internet. On Windows 2003 SBS as a mail exchange. Now need to move away from windows completely to Linux fedora 10. I need to configure a DNS so that i can use the fedora to download email from my ISP to their respectively clients computers.I do not want to host email but still want my ISP to handle the mail and my website. In other words i want to have the same function that is being done by windows to be done by Linux.

    How do i configure the DNS and the mail server on my server without disturbing the ISP settings. On my linux server is connected direct to the router that point to the ISP with eth1 and eth2 for LAN.

    my file is this:
    // named.conf
    // Provided by Red Hat bind package to configure the ISC BIND named( DNS
    // server as a caching only nameserver (as a localhost DNS resolver only).
    // See /usr/share/doc/bind*/sample/ for example named configuration files.

    options {
    listen-on port 53 {; };
    listen-on-v6 port 53 { ::1; };
    directory "/var/named";
    dump-file "/var/named/data/cache_dump.db";
    statistics-file "/var/named/data/named_stats.txt";
    memstatistics-file "/var/named/data/named_mem_stats.txt";
    allow-query { localhost; };
    recursion yes;

    logging {
    channel default_debug {
    file "data/";
    severity dynamic;

    zone "." IN {
    type hint;
    file "";

    include "/etc/named.rfc1912.zones";

    zone "" {
    type master;
    file "/var/named/";

    my vi /etc/resolv.conf
    # Generated by NetworkManager

    please assist in setting up a DNS server so that can set up a mail server for the LAN. Not sure the information I have provided will be of help or did I make myself clear about my situation.

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Nottingham, England
    The standard way to do this is to point at your ISP's DNS server - get their IP address(es) and put them into the file /etc/resolv.conf.

    Warning here, though - if your machine uses DHCP or NetworkManager to assign network info (and it looks here like you do), you may find it overwrites that file. If that's the case run the tool 'system-config-network' (you'll need root access to do that) and assign the IP addresses of your nameservers through that.
    Linux user #126863 - see

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts