Gå til innhold

VPS med Debian, Sette opp A-Records til NameServer og DNS


Anbefalte innlegg

Hei,

 

Jeg har kjøpt VPS igjennom Delimiter US. Jeg har da fått utlevert 2 IPer som jeg skal bruke som "Custom Nameserver" på domenet mitt.

 

Jeg har IPene:

62.18.44.172

62.18.44.174

 

Disse har blitt satt til ns1.domene.com og ns2.domene.com på domenet mitt hos namecheap.com. Har snakket med de og de sier at alt er i orden, jeg må bare fikse noe som vistnok het "A-Record" på IPene...nå dette har jeg INGEN anelse hva var, så jeg lette overalt på internett, installerte Webmin og Bind9, lekte rundt med dette og kom meg ingen vei.

 

Så, hvordan kan jeg konfigurere bind osv. til og fungere slik det skal fungere?

 

Bare og spør så skal jeg komme med alt av filer og innstillinger til VPSet.

 

Dette er forøvrig konfigurasjonfilene til Bind slik de ser ut akkurat nå, har HELT sikkert gjort noe feil da jeg bare har fikla rundt. Har også Webmin installert hvis det skal ha noe og si.

 

 

 

 

// This is the primary configuration file for the BIND DNS server named.

//

// Please read /usr/share/doc/bind9/README.Debian.gz for information on the

// structure of BIND configuration files in Debian, *BEFORE* you customize

// this configuration file.

//

// If you are just adding zones, please do that in /etc/bind/named.conf.local

 

include "/etc/bind/named.conf.options";

 

// prime the server with knowledge of the root servers

zone "." {

type hint;

file "/etc/bind/db.root";

};

 

// be authoritative for the localhost forward and reverse zones, and for

// broadcast zones as per RFC 1912

 

zone "localhost" {

type master;

file "/etc/bind/db.local";

};

 

zone "127.in-addr.arpa" {

type master;

file "/etc/bind/db.127";

};

 

zone "0.in-addr.arpa" {

type master;

file "/etc/bind/db.0";

};

 

zone "255.in-addr.arpa" {

type master;

file "/etc/bind/db.255";

};

 

include "/etc/bind/named.conf.local";

//

// Do any local configuration here

//

 

// Consider adding the 1918 zones here, if they are not used in your

// organization

//include "/etc/bind/zones.rfc1918";

 

zone "hospital-entrepreneur.com" {

type master;

file "/var/lib/bind/hospital-entrepreneur.com.hosts";

};

options {

directory "/var/cache/bind";

 

// If there is a firewall between you and nameservers you want

// to talk to, you may need to fix the firewall to allow multiple

// ports to talk. See http://www.kb.cert.org/vuls/id/800113

 

// If your ISP provided one or more IP addresses for stable

// nameservers, you probably want to use them as forwarders.

// Uncomment the following block, and insert the addresses replacing

// the all-0's placeholder.

 

forwarders {

62.18.44.172;

62.18.44.174;

};

 

auth-nxdomain no; # conform to RFC1035

listen-on-v6 { any; };

};

 

//

// Do any local configuration here

//

 

// Consider adding the 1918 zones here, if they are not used in your

// organization

//include "/etc/bind/zones.rfc1918";

 

zone "hospital-entrepreneur.com" {

type master;

file "/var/lib/bind/hospital-entrepreneur.com.hosts";

};

root@doctor:/etc/bind# cat /var/lib/bind/hospital-entrepreneur.com.hosts

$ttl 38400

hospital-entrepreneur.com. IN SOA hospital-entrepreneur.com. arni1348.gmail.com. (

1269209332

10800

3600

604800

38400 )

ns1.hospital-entrepreneur.com. IN A 62.18.44.172

ns2.hospital-entrepreneur.com. IN A 62.18.44.174

ns1.hospital-entrepreneur.com. IN NS ns1.hospital-entrepreneur.com.

ns2.hospital-entrepreneur.com. IN NS ns2.hospital-entrepreneur.com.

hospital-entrepreneur.com. IN NS ns1.hospital-entrepreneur.com.

hospital-entrepreneur.com. IN PTR 62.18.44.172

Takk for all hjelp. :) Endret av Surmoth
Lenke til kommentar

Opprett en konto eller logg inn for å kommentere

Du må være et medlem for å kunne skrive en kommentar

Opprett konto

Det er enkelt å melde seg inn for å starte en ny konto!

Start en konto

Logg inn

Har du allerede en konto? Logg inn her.

Logg inn nå
×
×
  • Opprett ny...