Help - Search - Members - Calendar
Full Version: Help setting up DC, DNS issue?
Linuxhelp > Support > Technical Support
corpusdilecti
So I'm following the tecmint tutorial to install samba 4 active directory on ubuntu, but I'm running to an issue with resolving my domain name. I can ping the FQDN and Host, but not the domain name. Here is my setup:

Hostname:

adc1

Hosts file:

127.0.0.1 localhost
127.0.1.1 adc1.tirnanog.local adc1

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# Wired network connection
auto eno1
iface eno1 inet static
address 192.168.1.200
netmask 255.255.255.0
broadcast 192.168.1.254
gateway 192.168.1.1
dns-nameservers 127.0.0.1 192.168.1.200 192.168.1.1
dns-search tirnanog.local

/etc/resolv.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search tirnanog.local

When I try to ping, these are the results that I get:

root@adc1:/# ping -c3 tirnanog.local
ping: unknown host tirnanog.local

root@adc1:/# ping -c3 adc1.tirnanog.local
PING adc1.tirnanog.local (127.0.1.1) 56(84) bytes of data.
64 bytes from adc1.tirnanog.local (127.0.1.1): icmp_seq=1 ttl=64 time=0.049 ms
64 bytes from adc1.tirnanog.local (127.0.1.1): icmp_seq=2 ttl=64 time=0.060 ms
64 bytes from adc1.tirnanog.local (127.0.1.1): icmp_seq=3 ttl=64 time=0.061 ms

--- adc1.tirnanog.local ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.049/0.056/0.061/0.010 ms


root@adc1:/# ping -c3 adc1.tirnanog.local
PING adc1.tirnanog.local (127.0.1.1) 56(84) bytes of data.
64 bytes from adc1.tirnanog.local (127.0.1.1): icmp_seq=1 ttl=64 time=0.052 ms
64 bytes from adc1.tirnanog.local (127.0.1.1): icmp_seq=2 ttl=64 time=0.061 ms
64 bytes from adc1.tirnanog.local (127.0.1.1): icmp_seq=3 ttl=64 time=0.062 ms

--- adc1.tirnanog.local ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.052/0.058/0.062/0.007 ms


Can anyone give me a hand and let me know what I'm doing wrong? I have a good feeling it is something to do with the dns-nameservers, but I've tried changing them a few time in /etc/network/interfaces and I can't seem to get anything to work.

By the way, this is what I'm running:

Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

Please, let me know if there is any other info needed. Thanks!
michaelk
Can you post the link to the tutorial?

What local DNS server are you running?
corpusdilecti
QUOTE (michaelk @ Apr 30 2017, 06:30 AM) *
Can you post the link to the tutorial?

What local DNS server are you running?


The original guide I was following was: www.tecmint.com/install-samba4-active-directory-ubuntu/

But it turns out that I completely skipped the step of setting up DNS all together. I just restarted from scratch and now successfully have DNS running as it should. biggrin.gif That should make the next part much easier lol.

In addition to the SAMBA documentation /u/dundir linked me to here, lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2011q1/004796.html in reddit.com/r/linux4noobs, I used tools.ietf.org/html/rfc1912 to gain some good knowledge on DNS configuration best practices.

I used two sites to guide me along with setting up DNS:

1st - help.ubuntu.com/lts/serverguide/dns-configuration.html

I found this one lacked some of the explanation that i needed to understand what and why I was doing something.

2nd - ulyssesonline.com/2007/11/07/how-to-setup-a-dns-server-in-ubuntu/

This one did a bit more explaining and helped me get a better understanding of what and why.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.