Skocz do zawartości

Dareksbs

Użytkownicy
  • Zawartość

    157
  • Rejestracja

  • Ostatnio

Posty napisane przez Dareksbs


  1. Witam,

     

    Mam dosyć duży problem z konfiguracją serwerów DNS, a mianowicie chcę podpiąć domenkę pod mój serwer, jednakże w panelu OVH cały czas otrzymuje komunikat :

     

    Strefa SOA dla domeny d******.pl nie jest dostępna na serwerze dns: ***.***.***.112

     

    Plik named.conf wygląda tak :

    include "/etc/bind/named.conf.options";
    include "/etc/bind/named.conf.local";
    // 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 "d******.pl" {
    			type master;
    			file "/etc/bind/******t.pl";
    			#allow-transfer {
    			#		  ***.***.***.111;
    			#		  ***.***.***.112;
    			#};
    			#notify yes;
    };
    

     

    ogólnie z tego co zauważyłem tylko drugiego IP nie chce przyjąć... Po otrzymaniu drugiego IP od dostawcy dodałem go w pliku interfaces w komendzie dns-nameservers oraz resolv.conf

     

    Teraz plik domeny d******t.pl:

     

    $TTL 86400
    @		  IN	 SOA	ns1.d*****.pl.  root.d*****.pl. (
    			2009020901
    			3600
    			3600
    			3600000
    			1209600
    			)
    ;
    @		  IN	 NS					  ns1.d*****.pl.
    @		  IN	 NS					  ns2.d*****.pl.
    ;
    @		  IN	 MX	  10	  mail.d*****.pl.pl.
    ;
    @		  IN	 A		***.***.***.111
    www	  IN	   A		***.***.***.111
    ns1	  IN	   A		***.***.***.111
    ns2	  IN	   A		***.***.***.112
    

     

    Jeśli chodzi o logi bind'a :

     

    Dec 31 17:51:53 192 named[1986]: starting BIND 9.7.3 -u bind
    Dec 31 17:51:53 192 named[1986]: built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=/usr' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=' 'CPPFLAGS='
    Dec 31 17:51:53 192 named[1986]: adjusted limit on open files from 1024 to 1048576
    Dec 31 17:51:53 192 named[1986]: found 4 CPUs, using 4 worker threads
    Dec 31 17:51:53 192 named[1986]: using up to 4096 sockets
    Dec 31 17:51:53 192 named[1986]: loading configuration from '/etc/bind/named.conf'
    Dec 31 17:51:53 192 named[1986]: reading built-in trusted keys from file '/etc/bind/bind.keys'
    Dec 31 17:51:53 192 named[1986]: using default UDP/IPv4 port range: [1024, 65535]
    Dec 31 17:51:53 192 named[1986]: using default UDP/IPv6 port range: [1024, 65535]
    Dec 31 17:51:53 192 named[1986]: listening on IPv4 interface lo, 127.0.0.1#53
    Dec 31 17:51:53 192 named[1986]: could not listen on UDP socket: address in use
    Dec 31 17:51:53 192 named[1986]: creating IPv4 interface lo failed; interface ignored
    Dec 31 17:51:53 192 named[1986]: listening on IPv4 interface eth0, ***.***.***.111#53
    Dec 31 17:51:53 192 named[1986]: could not listen on UDP socket: address in use
    Dec 31 17:51:53 192 named[1986]: creating IPv4 interface eth0 failed; interface ignored
    Dec 31 17:51:53 192 named[1986]: listening on IPv4 interface eth0, ***.***.***.111#53
    Dec 31 17:51:53 192 named[1986]: could not listen on UDP socket: address in use
    Dec 31 17:51:53 192 named[1986]: creating IPv4 interface eth0 failed; interface ignored
    Dec 31 17:51:53 192 named[1986]: not listening on any interfaces
    Dec 31 17:51:53 192 named[1986]: generating session key for dynamic DNS
    Dec 31 17:51:53 192 named[1986]: set up managed keys zone for view _default, file 'managed-keys.bind'
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: 254.169.IN-ADDR.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: 100.51.198.IN-ADDR.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: 113.0.203.IN-ADDR.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: D.F.IP6.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: 8.E.F.IP6.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: 9.E.F.IP6.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: A.E.F.IP6.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: B.E.F.IP6.ARPA
    Dec 31 17:51:53 192 named[1986]: automatic empty zone: 8.B.D.0.1.0.0.2.IP6.ARPA
    Dec 31 17:51:53 192 named[1986]: command channel listening on 127.0.0.1#953
    Dec 31 17:51:53 192 named[1986]: command channel listening on ::1#953
    Dec 31 17:51:53 192 named[1986]: additionally listening on IPv4 interface lo, 127.0.0.1#53
    Dec 31 17:51:53 192 named[1986]: could not listen on UDP socket: address in use
    Dec 31 17:51:53 192 named[1986]: creating IPv4 interface lo failed; interface ignored
    Dec 31 17:51:53 192 named[1986]: additionally listening on IPv4 interface eth0, ***.***.***.111#53
    Dec 31 17:51:53 192 named[1986]: could not listen on UDP socket: address in use
    Dec 31 17:51:53 192 named[1986]: creating IPv4 interface eth0 failed; interface ignored
    Dec 31 17:51:53 192 named[1986]: additionally listening on IPv4 interface eth0, ***.***.***.111#53
    Dec 31 17:51:53 192 named[1986]: could not listen on UDP socket: address in use
    Dec 31 17:51:53 192 named[1986]: creating IPv4 interface eth0 failed; interface ignored
    Dec 31 17:51:53 192 named[1986]: zone 0.in-addr.arpa/IN: loaded serial 1
    Dec 31 17:51:53 192 named[1986]: zone 127.in-addr.arpa/IN: loaded serial 1
    Dec 31 17:51:53 192 named[1986]: zone 255.in-addr.arpa/IN: loaded serial 1
    Dec 31 17:51:53 192 named[1986]: zone localhost/IN: loaded serial 2
    Dec 31 17:51:53 192 named[1986]: /etc/bind/d******.pl:19: file does not end with newline
    Dec 31 17:51:53 192 named[1986]: zone d******.pl/IN: d*******.pl/MX 'mail.d******.pl' has no address records (A or AAAA)
    Dec 31 17:51:53 192 named[1986]: zone d*****.pl/IN: loaded serial 2009020901
    Dec 31 17:51:53 192 named[1986]: managed-keys-zone ./IN: loading from master file managed-keys.bind failed: file not found
    Dec 31 17:51:53 192 named[1986]: managed-keys-zone ./IN: loaded serial 0
    Dec 31 17:51:53 192 named[1986]: running
    Dec 31 17:51:53 192 named[1986]: zone d******.pl/IN: sending notifies (serial 2009020901)
    

     

    Z góry bardzo dziękuje za pomoc !


  2. export http_proxy="http://nazwafirmy.dostawca:8080"
    export ftp_proxy="http://nazwafirmy.dostawca:8080"

     

    Cos jest jednak dalej nie tak

    Zrobilem tak :

    System-wide .bashrc file for interactive bash(1) shells.
    export http_proxy="http://[iP]:8080"
    export ftp_proxy="http://[iP]:8080"
    # To enable the settings / commands in this file for login shells as well,
    # this file has to be sourced in /etc/profile.
    # If not running interactively, don't do anything
    [ -z "$PS1" ] && return
    # check the window size after each command and, if necessary,
    # update the values of LINES and COLUMNS.
    shopt -s checkwinsize
    # set variable identifying the chroot you work in (used in the prompt below)
    if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
       debian_chroot=$(cat /etc/debian_chroot)
    fi
    # set a fancy prompt (non-color, overwrite the one in /etc/profile)
    PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    
    

     

    I jak widzisz dodalem te dwie liniki jednakze dalej nie moge sie polaczyc z internetem

     

    Pozdrawiam


  3. Edytujesz plik /etc/bash.bashrc, wpisujesz w nim:

    export http_proxy=http://user:pass@adresserweraproxy.ext:port/

    export ftp_proxy=http://user:pass@adresserweraproxy.ext:port/

     

    A gdy nie ma user'a i hasla ??

     

    Bo to jest internet firmowy (filtrowany) a bez serwera proxy nie polacze sie z internetem

    jedyne co posiadam to adres w stylu :

    nazwafirmy.dostawca:8080
    


  4. Do mnie napisał że chce 150zł za mc. za serwer 2x AMD QUAD i z góry, a na pytanie dlaczego to napisał „bo dla Pana mam tylko takie warunki” . Inaczej nie da mi żadnego serwera i że te warunki są negocjowalne.

    Więc wnioskuję to co wyżej.

     

    A ja dostałem serwer :)

    Procek czterordzeniwy, 8GB RAM, dysk 400GB + 2 dodatkowe adresy IP i to wszystko darmo do końca miesiąca potem tylko za prąd...

    Co do serwera, to wszystko postaram sie wam opisać jutro jak wrócę z pracy...

     

    Jak na razie zalogowalem sie na maszynę aby sprawdzić zasoby i wszystko sie zgadza. Jednakże wyrzuca błędy podczas aktualizacji, jutro sprawdze dokładnie co sie stało.

     

    Ale jak na razie mogę potwierdzić ze darmowe serwery to nie był żart.


  5. Kernel kompilowałeś z gcc 4.3, to z takim kompiluj tez moduł kernela do vmware.

    Ja np na Gentoo mam kernel 4.6.2.

     

    Dalej nic, dla pewności przeinstalowałem system, zmieniłem gcc na 4.3 i wyrzuciło :

     

    Extracting the sources of the vmmon module.

     

    Building the vmmon module.

     

    Using 2.6.x kernel build system.

    make: Entering directory `/tmp/vmware-config0/vmmon-only'

    make -C /lib/modules/2.6.32-5-openvz-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-openvz-amd64'

    CC [M] /tmp/vmware-config0/vmmon-only/linux/driver.o

    In file included from /tmp/vmware-config0/vmmon-only/linux/driver.c:31:

    /tmp/vmware-config0/vmmon-only/./include/compat_wait.h:78: error: conflicting types for 'poll_initwait'

    /usr/src/linux-headers-2.6.32-5-common-openvz/include/linux/poll.h:70: error: previous declaration of 'poll_initwait' was here

    In file included from /tmp/vmware-config0/vmmon-only/./common/vmx86.h:32,

    from /tmp/vmware-config0/vmmon-only/linux/driver.h:29,

    from /tmp/vmware-config0/vmmon-only/linux/driver.c:101:

    /tmp/vmware-config0/vmmon-only/./include/x86msr.h:164:1: warning: "MSR_THERM2_CTL" redefined

    In file included from /usr/src/linux-headers-2.6.32-5-common-openvz/arch/x86/include/asm/msr.h:4,

    from /usr/src/linux-headers-2.6.32-5-common-openvz/arch/x86/include/asm/processor.h:21,

    from /usr/src/linux-headers-2.6.32-5-common-openvz/include/linux/prefetch.h:14,

    from /usr/src/linux-headers-2.6.32-5-common-openvz/include/linux/list.h:6,

    from /usr/src/linux-headers-2.6.32-5-common-openvz/include/linux/module.h:9,

    from /tmp/vmware-config0/vmmon-only/./include/compat_module.h:27,

    from /tmp/vmware-config0/vmmon-only/linux/driver.c:26:

    /usr/src/linux-headers-2.6.32-5-common-openvz/arch/x86/include/asm/msr-index.h:234:1: warning: this is the location of the previous definition

    /tmp/vmware-config0/vmmon-only/linux/driver.c: In function 'LinuxDriverSyncCallOnEachCPU':

    /tmp/vmware-config0/vmmon-only/linux/driver.c:1423: error: too many arguments to function 'smp_call_function'

    /tmp/vmware-config0/vmmon-only/linux/driver.c: In function 'LinuxDriver_Ioctl':

    /tmp/vmware-config0/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'euid'

    /tmp/vmware-config0/vmmon-only/linux/driver.c:1987: error: 'struct task_struct' has no member named 'uid'

    /tmp/vmware-config0/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'fsuid'

    /tmp/vmware-config0/vmmon-only/linux/driver.c:1988: error: 'struct task_struct' has no member named 'uid'

    /tmp/vmware-config0/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'egid'

    /tmp/vmware-config0/vmmon-only/linux/driver.c:1989: error: 'struct task_struct' has no member named 'gid'

    /tmp/vmware-config0/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'fsgid'

    /tmp/vmware-config0/vmmon-only/linux/driver.c:1990: error: 'struct task_struct' has no member named 'gid'

    /tmp/vmware-config0/vmmon-only/linux/driver.c:2007: error: too many arguments to function 'smp_call_function'

    make[4]: *** [/tmp/vmware-config0/vmmon-only/linux/driver.o] Error 1

    make[3]: *** [_module_/tmp/vmware-config0/vmmon-only] Error 2

    make[2]: *** [sub-make] Error 2

    make[1]: *** [all] Error 2

    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-openvz-amd64'

    make: *** [vmmon.ko] Error 2

    make: Leaving directory `/tmp/vmware-config0/vmmon-only'

    Unable to build the vmmon module.

     

    For more information on how to troubleshoot module-related problems, please

    visit our Web site at "http://www.vmware.com/go/unsup-linux-products" and

    "http://www.vmware.com/go/unsup-linux-tools".

     

    Execution aborted.

     


  6. Próbujesz użyć do kompilacji gcc 4.1, sprawdź w systemie jakie jest domyślne, ewentualnie sprawdź link /usr/bin/gcc tak jak mówi komunikat.

     

    Sprawdziłem /usr/bin/gcc

     

    oczywiście jest tam skrót gcc do pliku gcc-4.1

    Zrobiłem to aby instalator vmware nie wyrzucał błędu (użyłem komendy ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc)

     

    Dodatkowo mam tam jeszcze gcc-4.2 gcc-4.3 oraz gcc-4.4

     

    Który najlepiej wybrać ?


  7. Od dwóch godzin toczę wojnę z tym pancernym instalatorem Vmwarer i nie mogę tego zainstalować...

    Ciągle coś, jak nie mogło znaleźć gcc to nie znaleźć czegoś innego...

     

    Jak na razie wyrzuca tyko error :

     

     

    Building the vmmon module.

     

    Using 2.6.x kernel build system.

    make: Entering directory `/tmp/vmware-config2/vmmon-only'

    make -C /lib/modules/2.6.32-5-openvz-amd64/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules

    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-5-openvz-amd64'

    /tmp/vmware-config2/vmmon-only/Makefile:106: *** Inappropriate build environment: you wanted to use gcc version 4.1.3 while kernel attempts to use gcc version 4.3.5.

    /tmp/vmware-config2/vmmon-only/Makefile:108: *** For proper build you'll have to replace gcc-4.3 with symbolic link to /usr/bin/gcc. Stop.

    make[3]: *** [_module_/tmp/vmware-config2/vmmon-only] Error 2

    make[2]: *** [sub-make] Error 2

    make[1]: *** [all] Error 2

    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-openvz-amd64'

    make: *** [vmmon.ko] Error 2

    make: Leaving directory `/tmp/vmware-config2/vmmon-only'

    Unable to build the vmmon module.

     

    For more information on how to troubleshoot module-related problems, please

    visit our Web site at "http://www.vmware.com/go/unsup-linux-products" and

    "http://www.vmware.com/go/unsup-linux-tools".

     

    Execution aborted.

     

    Ktoś ma jakąś metodę jak to wskrzesić ?


  8. Mam mały problem z wirtualizacją openvz, a dokładniej to po stworzeniu konta w panelu, i po zalogowaniu się na nie przez putty, i przy skorzystaniu z komendy apt-get update wyrzuca ten błąd :

     

    apt-get update
    Err http://ftp.debian.org lenny Release.gpg
     Temporary failure resolving 'ftp.debian.org'
    Err http://security.debian.org lenny/updates Release.gpg
     Temporary failure resolving 'security.debian.org'
    Err http://volatile.debian.org lenny/volatile Release.gpg
     Temporary failure resolving 'volatile.debian.org'
    Reading package lists... Done
    W: Failed to fetch http://ftp.debian.org/debian/dists/lenny/Release.gpg  Temporary failure resolving 'ftp.debian.org'
    
    W: Failed to fetch http://volatile.debian.org/debian-volatile/dists/lenny/volatile/Release.gpg  Temporary failure resolving 'volatile.debian.org'
    
    W: Failed to fetch http://security.debian.org/debian-security/dists/lenny/updates/Release.gpg  Temporary failure resolving 'security.debian.org'
    
    W: Some index files failed to download, they have been ignored, or old ones used instead.
    W: You may want to run apt-get update to correct these problems
    
    

     

    próbowałem pingować google, ale wygląda na to że serwer nie ma podłączenia do internetu.. jednakże bez problemu mogę się z nim połączyć... próbowałem skonfigurować IP w pliku interfaces, ale po restarcie serwer pada, mam tu na myśli że nie mogłem się z nim połączyć, a po restarcie w plik interface wraca do starych ustawień.

     

    Ktoś orientuje się jak to naprawić ?

×