Fedora Linux Support Community & Resources Center
  #1  
Old 12th October 2017, 07:52 AM
FrancescoZozo Offline
Registered User
 
Join Date: Oct 2017
Location: Dijon, Burgundy, France
Posts: 7
linuxfedorafirefox
A server with two nic, two ip adresses, two hostnames in different domain

Greats Everybody !

My routeur have a public ip address provided by no-ip and ports 80 and 53 are redirected to my server 192.168.1.1 on aproximatively the same ports.
my server have two nic with two different ip address in two differents network 192.168.1.0/24 and 192.168.168.0/24. The ip address on the second network is 192.168.168.134 (i precise i have changed my ip addresses).
192.168.1.1 is macbeth.infosysdevconcept.net and 192.168.0.134 is lear.local.infosysdevconcept.net
nslookup give me a good result with non authoritative answer. logical, named is out of order.

systemctl status -l named says
oct. 12 08:32:34 macbeth.infosysdevconcept.net bash[6430]: db.192.168.168:134: ignoring out-of-zone data (11.168.192.in-addr.arpa.local.infosysdevconcept.zone)
oct. 12 08:32:34 macbeth.infosysdevconcept.net bash[6430]: db.192.168.168:136: ignoring out-of-zone data (11.11.168.192.in-addr.arpa.local.infosysdevconcept.zone)
oct. 12 08:32:34 macbeth.infosysdevconcept.net bash[6430]: zone 168.168.192.in-addr.arpa/IN: has 0 SOA records
oct. 12 08:32:34 macbeth.infosysdevconcept.net bash[6430]: zone 168.168.192.in-addr.arpa/IN: has no NS records
oct. 12 08:32:34 macbeth.infosysdevconcept.net bash[6430]: zone 168.168.192.in-addr.arpa/IN: not loaded due to errors.
oct. 12 08:32:34 macbeth.infosysdevconcept.net bash[6430]: _default/168.168.192.in-addr.arpa/IN: bad zone

i precise i don't have knowledge of 192.168.168.136.

named-checkconf -z /etc/named.conf give other informations :

***
db.192.168.1:5: ignoring out-of-zone data (0.168.192.in-addr.arpa.infosysdevconcept.zone)
db.192.168.1:13: ignoring out-of-zone data (0.168.192.in-addr.arpa.infosysdevconcept.zone)
db.192.168.1:15: ignoring out-of-zone data (10.0.168.192.in-addr.arpa.infosysdevconcept.zone)
zone 1.192.168.in-addr.arpa/IN: has 0 SOA records
zone 1.192.168.in-addr.arpa/IN: has no NS records
zone 1.192.168.in-addr.arpa/IN: not loaded due to errors.
_default/1.192.168.in-addr.arpa/IN: bad zone
***
db.192.168.168:4: ignoring out-of-zone data (11.168.192.in-addr.arpa.local.infosysdevconcept.zone)
db.192.168.168:12: ignoring out-of-zone data (11.168.192.in-addr.arpa.local.infosysdevconcept.zone)
db.192.168.168:14: ignoring out-of-zone data (11.11.168.192.in-addr.arpa.local.infosysdevconcept.zone)
zone 168.168.192.in-addr.arpa/IN: has 0 SOA records
zone 168.168.192.in-addr.arpa/IN: has no NS records
zone 168.168.192.in-addr.arpa/IN: not loaded due to errors.
_default/168.168.192.in-addr.arpa/IN: bad zone

here my file infosysdevconcept.net.zone :

$ORIGIN infosysdevconcept.net.
$TTL 86400

@ IN SOA ns.infosysdevconcept.net. macbeth.infosysdevconcept.net. (
2017100401
10800
3600
604800
38400 )

@ IN NS ns.infosysdevconcept.net.

@ IN MX 10 mail.infosysdevconcept.net.

@ IN A 192.168.1.1
www IN A 192.168.1.1
* IN CNAME www

mail IN A 192.168.1.1
mail2 IN A 192.168.1.1
ns IN A 192.168.1.1
ns2 IN A 192.168.1.1

local.infosysdevconcept.net.zone :

$ORIGIN local.infosysdevconcept.zone.
$TTL 86400

@ IN SOA ns.local.infosysdevconcept.net. lear.local.infosysdevconcept.net. (
2017100901
10800
3600
604800
38400 )

@ IN NS ns.local.infosysdevconcept.net.

@ IN MX 10 mail.local.infosysdevconcept.net.

@ IN A 192.168.168.134
www IN A 192.168.168.134
* IN CNAME www

mail IN A 192.168.168.134
mail2 IN A 192.168.168.134
ns IN A 192.168.168.134
ns2 IN A 192.168.168.134

and the reverse db.192.168.1

; named revere for 1.168.192.in-addr.arpa

$ORIGIN infosysdevconcept.zone.
$TTL 604800
1.168.192.in-addr.arpa IN SOA ns.infosysdevconcept.net. macbeth.infosysdevconcept.net. (
2017100901
10800
3600
604800
38400
)

1.168.192.in-addr.arpa IN NS ns.infosysdevconcept.net.

1.1.168.192.in-addr.arpa IN PTR infosysdevconcept.net.

and db.192.168.168

; named reverse for 11.168.192.in-addr.arpa
$ORIGIN local.infosysdevconcept.zone.
$TTL 604800
168.168.192.in-addr.arpa IN SOA ns.local.infosysdevconcept.net. lear.local.infosysdevconcept.net. (
2017100901
10800
3600
604800
38400
)

168.168.192.in-addr.arpa IN NS ns.local.infosysdevconcept.net.

134.168.168.192.in-addr.arpa IN PTR local.infosysdevconcept.net.

Any help in any way will be welcome !

Regards,

Franck
Reply With Quote
  #2  
Old 13th October 2017, 08:54 AM
FrancescoZozo Offline
Registered User
 
Join Date: Oct 2017
Location: Dijon, Burgundy, France
Posts: 7
linuxfedorafirefox
Re: A server with two nic, two ip adresses, two hostnames in different domain

Up !!! Please !!!
Reply With Quote
  #3  
Old 13th October 2017, 01:25 PM
ocratato Online
Registered User
 
Join Date: Oct 2010
Location: Canberra
Posts: 2,650
linuxfirefox
Re: A server with two nic, two ip adresses, two hostnames in different domain

I looked through your posting twice. What are looking for help with ?
__________________
Has anyone seriously considered that it might be turtles all the way down?
That's very old fashioned thinking.
The current model is that it's holographic nested virtualities of turtles, all the way down.
Reply With Quote
  #4  
Old 13th October 2017, 02:46 PM
FrancescoZozo Offline
Registered User
 
Join Date: Oct 2017
Location: Dijon, Burgundy, France
Posts: 7
linuxfedorafirefox
Re: A server with two nic, two ip adresses, two hostnames in different domain

Hello Ocratato and thanks for your answer

I would try to make working the dns server for the two differents domain. Actually he is down.
Ideally i want that my hostname would be lear.local.infosysdevconcept.net and that the dns server works only on this ip with a redirection of ports by iptables (yet configured).
After i want that lear works too for the apache server, in the same type of configuration.
Sorry for imprecisions, i have some diffulties to express in english, not my native language ;-)
Ask for some precise questions and i will answer.
checkconf says my configuration is bad !
thanks for helping,

Francesco
Reply With Quote
  #5  
Old 18th October 2017, 03:51 PM
FrancescoZozo Offline
Registered User
 
Join Date: Oct 2017
Location: Dijon, Burgundy, France
Posts: 7
linuxfedorafirefox
Re: A server with two nic, two ip adresses, two hostnames in different domain

Greats,

The thread is closed, i have let fall this configuration. However, it could be interesting to can configure it : an public hostname and local ip adress, and a second hostname and ip adress in a different domain which is configured for servers on atypic ip address with a formardin on differents ports by iptables.

Just a little bit complex for the moment !!!

Thanks anyway Ocratato to have read my litterature !!!

Regards,
Franck
Reply With Quote
Reply

Tags
adresses , dns , domain , hostnames , named , nic , server

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS pointing to a virtual domain rather than main server domain name? bluesky48 Servers & Networking 1 22nd November 2011 11:19 PM
Mail Server for Fedora Directory Server domain barry905 Guides & Solutions (Not For Questions) 1 20th August 2009 04:40 AM
getting IP adresses using dhcp after eth activation on boot! redzo Using Fedora 0 10th February 2007 02:15 PM
IP-adresses from Windows-machines on the network bK_Coder Servers & Networking 5 13th September 2005 09:25 AM
dhcp server and hostnames not working! chelsey Servers & Networking 7 12th August 2005 06:12 PM


Current GMT-time: 07:47 (Monday, 23-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat