BIND kérdés…

6 bejegyzés megtekintése - 1-6 / 6
  • Szerző
    Bejegyzés
  • #2010766
    admin
    Adminisztrátor

      Sziasztok!

      Van egy mûködõ BIND-em. Ebben definiálva van egy adott aldomain. Mit kell ahhoz írnom a konfigba, hogy pl. az aldomain.domain.hu cím a http://szolgaltato.hu/user címre mutasson?
      Magyarul, átirányítást szeretnék csinálni, de nem IP címre. Tudtommal az „A” rekordba csak IP-t lehet megadni.

      Elõre is köszi minden segítséget!
      [align=right][snapback]126932[/snapback][/align]

      http://szabilinux.hu/#dns

      #2010767
      Centrox
      Felhasználó

        http://szabilinux.hu/#dns
        [align=right][snapback]127049[/snapback][/align]

        Lehet, hogy én nem voltam elég körültekintõ, de ezekben a doksikban nem találtam meg a kérdésemre a választ… 🙁

        #2010768
        cs4b33
        Felhasználó

          Sziasztok 🙂

          Nem tudom aktuális-e a kérdés mert 2005 -ben tette fel 😀

          De lírom hátha másnak segít 🙂

          Anyi az egész hogy BIND -ben saját ipd-e írod az adlomain nevet majd apacheban vhostban beállítod ennyi 🙂

          #2010769
          rednek
          Felhasználó

            Helósztok
            Nekem lenne egy olyan kérdésem, miért csinálja ezt a bind9 (Debian Etch):

            p433:/home/rednek# /etc/init.d/bind9 reload
            Reloading domain name service…: bindrndc: connect failed: 127.0.0.1#953: connection refused
            failed!

            Eddig deklaráltam egy saját körzetet.
            192.168.1.1 -> router (netet kapom tőle)
            192.168.1.35 -> DNS szerver
            192.168.1.33 -> munkaálomás

            named.conf.options

            Code:
            options {
              directory „/var/cache/bind”;

              // If there is a firewall between you and nameservers you want
              // to talk to, you might need to uncomment the query-source
              // directive below.  Previous versions of BIND always asked
              // questions using port 53, but BIND 8.1 and later use an unprivileged
              // port by default.

              // query-source address * port 53;

              // 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 {
            192.186.1.1;
                };

              auth-nxdomain no;    # conform to RFC1035
              listen-on-v6 { any; };
            };

            named.conf

            Code:
            // 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”;
            };

            // zone „com” { type delegation-only; };
            // zone „net” { type delegation-only; };

            // From the release notes:
            //  Because many of our users are uncomfortable receiving undelegated answers
            //  from root or top level domains, other than a few for whom that behaviour
            //  has been trusted and expected for quite some length of time, we have now
            //  introduced the „root-delegations-only” feature which applies delegation-only//  logic to all top level domains, and to the root domain.  An exception list
            //  should be specified, including „MUSEUM” and „DE”, and any other top level
            //  domains from whom undelegated responses are expected and trusted.
            // root-delegation-only exclude { „DE”; „MUSEUM”; };

            include „/etc/bind/named.conf.local”;

            named.conf.local

            Code:
            //
            // Do any local configuration here

            zone „horvathnet.hu” {
                type master;
                file „etc/bind/db.horvathnet”;
            };

            zone 168.192.in-addr.arpa” {
                type master;
                file „ect/bind/db.168.192;
            };

            //

            // Consider adding the 1918 zones here, if they are not used in your
            // organization
            //include „/etc/bind/zones.rfc1918”;

            db.local

            Code:
            //
            // Do any local configuration here

            zone „horvathnet.hu” {
                type master;
                file „etc/bind/db.horvathnet”;
            };

            zone 168.192.in-addr.arpa” {
                type master;
                file „ect/bind/db.168.192;
            };

            //

            // Consider adding the 1918 zones here, if they are not used in your
            // organization
            //include „/etc/bind/zones.rfc1918”;

            db.127

            Code:
            ;
            ; BIND reverse data file for local loopback interface
            ;
            $TTL    604800
            @   IN SOA localhost. root.localhost. (
            1     ; Serial
            604800     ; Refresh
            86400     ; Retry
                2419200     ; Expire
            604800 )   ; Negative Cache TTL
            ;
            @   IN NS localhost.
            1.0.0  IN PTR localhost.

            Úgy gondolom, hogy a local-al lesz a gond, mert a hibaüzenetnél azt írja, de bemásolom a saját körzetet is.
            db.horvathnet

            Code:
            ;
            ; BIND data file for horvathnet.hu domain
            ;
            $TTL    86400
            @   IN SOA p433.horvathnet.hu. root.p433.horvathnet.hu. (
              2000092101 ; Serial
              28800 ; Refresh
              7200 ; Retry
              604800     ; Expire
              86400 )   ; Negative Cache TTL
            ;
            @   IN NS p433.horvathnet.hu.
            ;——————————————————-;
            p433    IN A 192.168.1.35   ;
            @   IN MX 10 p433.horvathnet.hu. ;
            ns IN CNAME  p433   ;
            www IN CNAME  p433   ;
            ftp IN CNAME  p433   ;
            mail    IN CNAME  p433   ;
            proxy  IN CNAME  p433   ;
            p433    IN HINFO ;
            ;——————————————————-;

            ;——————————————————-;
            cuncimokus IN A   192.168.1.33. ;
            router IN A   192.168.1.1.   ;
            ;——————————————————-;
            ; vege

            db.168.192

            Code:
            ; BIND data file for 192.168.x.x reverse DNS
            ;
            $TTL    86400
            @   IN SOA p433.horvathnet.hu root.p433.horvathnet.hu (
              2000092101 ; Serial
              28800 ; Refresh
              7200   ; Retry
              604800 ; Expire
              86400 )     ; Negative Cache TTL
            ;
            @   IN NS p433.horvathnet.hu
            ;
            35.1    IN PTR p433.horvathnet.hu
            33.1    IN PTR cuncimokus.horvathnet.hu
            1.1 IN PTR router.horvathnet.hu
            ; vegep

            a resolv.conf -ba pedig a szolgáltatóm DNS szerverevan beírva: 85.66.85.120
            Már elolvastam a Szabilinux doksit.
            Segítségeteket előre is köszi

            #2010770
            rednek
            Felhasználó

              Megvan … elírás történt… csak én voltam a vak65.gif 

              #1879043
              csaba
              Felhasználó

                Sziasztok!

                Van egy mûködõ BIND-em. Ebben definiálva van egy adott aldomain. Mit kell ahhoz írnom a konfigba, hogy pl. az aldomain.domain.hu cím a http://szolgaltato.hu/user címre mutasson?
                Magyarul, átirányítást szeretnék csinálni, de nem IP címre. Tudtommal az „A” rekordba csak IP-t lehet megadni.

                Elõre is köszi minden segítséget!

              6 bejegyzés megtekintése - 1-6 / 6
              • Be kell jelentkezni a hozzászóláshoz.