Страница 1 из 1

Мой первый BIND9

Добавлено: 2007-09-11 16:41:47
torki
Спецам по Unix земной поклон!!!
В первый раз решил поднять собственный днс под фри6.2, нашел книженцию в инете интересную называется DNS.and.BIND[Пол.Альбитц_Крикет.Ли].pdf на русском. Lissyara если интересно для твоего проекта по документации дай фтп куда слить всего 10mb. Вообщем прикол такой при старте bind в логи пишет вот что starting BIND 9.3.4-P1 -t /var/named -u bind

Код: Выделить всё

Sep 11 16:13:50 gw named[1484]: command channel listening on 127.0.0.1#953
Sep 11 16:13:50 gw named[1484]: command channel listening on ::1#953
Sep 11 16:13:50 gw named[1484]: master/db.1.168.192:11: file does not end with newline
Sep 11 16:13:50 gw named[1484]: running
состояние я еще не проверял но запись типа Sep 11 16:13:50 gw named[1484]: master/db.1.168.192:11: file does not end with newline
вообщем напрягает, а вот и сам файл:

Код: Выделить всё

$TTL    3h
1.168.192.in-addr.arpa. IN      SOA     gw.mydom.loc.   root.gw.mydom.loc. (
                                        1       ;Serial
                                        3h      ;Refresh
                                        1h      ;Retry
                                        1w      ;Expire
                                        1h )    ;Minimum
1.168.192.in-addr.arpa.         IN      NS      gw.mydom.loc.
1.1.168.192.in-addr.arpa.       IN      PTR     gw.mydom.loc.
2.1.168.192.in-addr.arpa.       IN      PTR     gw2.mydom.loc.
3.1.168.192.in-addr.arpa.       IN      PTR     test.mydom.loc.
ваше мнение :?

Re: Мой первый BIND9

Добавлено: 2007-09-11 18:12:57
Alex Keda

Re: Мой первый BIND9

Добавлено: 2007-09-11 18:35:30
torki
Залил, забирайте. :P
Ну а по вопросу что можете посоветовать?

Re: Мой первый BIND9

Добавлено: 2007-09-11 18:51:27
Alex Keda
ну так он явно ругается...
переведи фразу

Re: Мой первый BIND9

Добавлено: 2007-09-11 19:16:08
torki
file does not end with newline
первод такой: мол файл не соединен с новой линией (строкой) :?:

Re: Мой первый BIND9

Добавлено: 2007-09-11 20:20:34
Alex Keda
не завершается новой строкой

Re: Мой первый BIND9

Добавлено: 2007-09-11 22:25:49
torki
Ага, понял, МС подвел.

Re: Мой первый BIND9

Добавлено: 2007-09-11 23:46:17
Alex Keda
юзайте правильные редакторы.
например, vim

Re: Мой первый BIND9

Добавлено: 2007-09-11 23:52:26
torki
:D Спасибо!

Re: Мой первый BIND9

Добавлено: 2007-09-12 12:22:08
manefesto

Код: Выделить всё

юзайте правильные редакторы.
например, vim
А ты сам юзаешь vim ?

Re: Мой первый BIND9

Добавлено: 2007-09-12 15:32:03
Alex Keda

Код: Выделить всё

lissyara$ more /root/.cshrc | grep vim
alias vi        vim
alias ee        vim
setenv  EDITOR  vim
lissyara$
могу подкинуть неплохой vimrc - стырен в дебиане, подточен мальца под свои нужды:

Код: Выделить всё

lissyara$ more /root/.vimrc

" Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible        " Use Vim defaults instead of 100% vi compatibility
set backspace=indent,eol,start  " more powerful backspacing

" Now we set some defaults for the editor
set autoindent          " always set autoindenting on
" set linebreak         " Don't wrap words by default
set textwidth=0         " Don't wrap lines by default
set viminfo='20,\"50    " read/write a .viminfo file, don't store more than
                        " 50 lines of registers
set history=50          " keep 50 lines of command line history
set ruler               " show the cursor position all the time

" Suffixes that get lower priority when doing tab completion for filenames.
" These are files we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc

" We know xterm-debian is a color terminal
if &term =~ "xterm-debian" || &term =~ "xterm-xfree86"
  set t_Co=16
  set t_Sf=ESC[3%dm
  set t_Sb=ESC[4%dm
endif

" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
" syntax on

" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
" set background=dark

if has("autocmd")
 " Enabled file type detection
 " Use the default filetype settings. If you also want to load indent files
 " to automatically do language-dependent indenting add 'indent' as well.
 filetype plugin on

endif " has ("autocmd")

" Some Debian-specific things
if has("autocmd")
  augroup filetype
    au BufRead reportbug.*              set ft=mail
    au BufRead reportbug-*              set ft=mail
  augroup END
endif

" Uncomment the following to have Vim jump to the last position when
" reopening a file
" if has("autocmd")
"   au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
"                    \| exe normal g'\"" | endif
" endif

" Set paper size from /etc/papersize if available (Debian-specific)
if filereadable("/etc/papersize")
  try
    let s:shellbak = &shell
    let &shell="/bin/sh"
    let s:papersize = matchstr(system("cat /etc/papersize"), "\\p*")
    let &shell=s:shellbak
    if strlen(s:papersize)
      let &printoptions = "paper:" . s:papersize
    endif
  catch /^Vim\%((\a\+)\)\=:E145/
  endtry
endif

" The following are commented out as they cause vim to behave a lot
" different from regular vi. They are highly recommended though.
"set showcmd            " Show (partial) command in status line.
"set showmatch          " Show matching brackets.
"set ignorecase         " Do case insensitive matching
"set incsearch          " Incremental search
"set autowrite          " Automatically save before commands like :next and :make

" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
  source /etc/vim/vimrc.local
endif
syntax on
lissyara$