rednek

Hozzászólások

10 bejegyzés megtekintése - 71-80 / 248
  • Szerző
    Bejegyzés
  • Hozzászólás: Debian Etch + GNU C #2121547
    rednek
    Felhasználó

      Kipróbáltam, úgy is ugyan azt írja

      Hozzászólás: MSN linuxra #2120269
      rednek
      Felhasználó

        aMSN is nagyon jó..
        Én spec Kopete-t használok…

        Hozzászólás: MSN linuxra #2120270
        rednek
        Felhasználó

          aMSN is nagyon jó..
          Én spec Kopete-t használok…

          Hozzászólás: BIND kérdés… #2010770
          rednek
          Felhasználó

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

            Hozzászólás: BIND kérdés… #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

              Hozzászólás: Szégyen, de nem tudom … #2089795
              rednek
              Felhasználó

                Írtam egy schell scriptet. Melyik könyvtárba kell berakni, vagy hogy lehet azt megoldani, hogy a parancssorban, mint „parancs”?
                Tehát ha a promtpba elkezdem írni a script fájlom nevét, és nyomok 1 TAB-ot akkor egészítse ki, majd futtassa le. (Általánosan, minden disztribúción működjön(BSD-ken is))

                Hozzászólás: Segítség Fontos!!! #2063370
                rednek
                Felhasználó

                  OFF /* Nem lehetne a téma címét megváltoztatni? Ebben a topicban szinte csak a sed-ről (minimálisan az awk-ről) esett szó.
                  */ ON

                  Hozzászólás: Segítség Fontos!!! #2063367
                  rednek
                  Felhasználó

                    Köszönöm szépen a felvilágosítást. (Amúgy tényleg átláthatóbb ha / helyett @-ot használok.)

                    Hozzászólás: Segítség Fontos!!! #2063365
                    rednek
                    Felhasználó

                      Meg van nekem a könyv.
                      Majd ha lessz egy kicsit több szabadidőm akkor jobban belenézek, sajnos most vizsgaidőszak van:(
                      Egyébként tudom, hogy maszek megoldás, de működött és a feladatát ellátta:D

                      Amúgy ezt a @-os karaktert nem találtam sehol a könyvben. Lécci elmagyarázod, hogy működik … azt értem, hogy ([0-9]*).*
                      de a @1@g azt egyszerűen nem tudom megfejteni.
                      illetve az elején s@  (Substitute akar lenni?)
                      Meg a „-t sem látam még sedben használni.

                      Hozzászólás: Segítség Fontos!!! #2063363
                      rednek
                      Felhasználó

                        Van nekem egy egybefüggő karaktersorozatom…
                        pl: 319?1jkdkkw2gkegflvkjvcgji
                          519v1sdélfksfvmb
                          67342aklfjklsgjaklgjkgjja
                          4421?lajsfhléfhlégh

                        Mindegyikben az a közös, hogy az eleje változó hosszúságú számmal kezdődik.
                        pl: 319
                          519
                          67342
                          4421

                        Illetve hogy a számok után [a-z] betűk vagy ? áll.
                        Hogy tudom megoldani, hogy nekem csak a változó hosszúságú számot írja ki? (próbálgattam sed-el de nem jutotam semmire)
                        Segítségeteket előre is köszi.

                        Sikerült megoldanom:
                        (tegyük fel, hogy ki van listáztatva a szövek, és csak azt arom le, hogy-hogy lessz pip-e hozzáfűzva az awk)
                        awk -F[a-z,?] ‘{print $1}’

                      10 bejegyzés megtekintése - 71-80 / 248